0 CpxRelTRS
↳1 RelTrsToWeightedTrsProof (BOTH BOUNDS(ID, ID), 0 ms)
↳2 CpxWeightedTrs
↳3 TypeInferenceProof (BOTH BOUNDS(ID, ID), 0 ms)
↳4 CpxTypedWeightedTrs
↳5 CompletionProof (UPPER BOUND(ID), 152 ms)
↳6 CpxTypedWeightedCompleteTrs
↳7 NarrowingProof (BOTH BOUNDS(ID, ID), 822 ms)
↳8 CpxTypedWeightedCompleteTrs
↳9 CpxTypedWeightedTrsToRntsProof (UPPER BOUND(ID), 20 ms)
↳10 CpxRNTS
↳11 InliningProof (UPPER BOUND(ID), 787 ms)
↳12 CpxRNTS
↳13 SimplificationProof (BOTH BOUNDS(ID, ID), 15 ms)
↳14 CpxRNTS
↳15 CpxRntsAnalysisOrderProof (BOTH BOUNDS(ID, ID), 0 ms)
↳16 CpxRNTS
↳17 IntTrsBoundProof (UPPER BOUND(ID), 396 ms)
↳18 CpxRNTS
↳19 IntTrsBoundProof (UPPER BOUND(ID), 62 ms)
↳20 CpxRNTS
↳21 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳22 CpxRNTS
↳23 IntTrsBoundProof (UPPER BOUND(ID), 1186 ms)
↳24 CpxRNTS
↳25 IntTrsBoundProof (UPPER BOUND(ID), 192 ms)
↳26 CpxRNTS
↳27 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳28 CpxRNTS
↳29 IntTrsBoundProof (UPPER BOUND(ID), 237 ms)
↳30 CpxRNTS
↳31 IntTrsBoundProof (UPPER BOUND(ID), 64 ms)
↳32 CpxRNTS
↳33 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳34 CpxRNTS
↳35 IntTrsBoundProof (UPPER BOUND(ID), 511 ms)
↳36 CpxRNTS
↳37 IntTrsBoundProof (UPPER BOUND(ID), 148 ms)
↳38 CpxRNTS
↳39 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳40 CpxRNTS
↳41 IntTrsBoundProof (UPPER BOUND(ID), 553 ms)
↳42 CpxRNTS
↳43 IntTrsBoundProof (UPPER BOUND(ID), 154 ms)
↳44 CpxRNTS
↳45 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳46 CpxRNTS
↳47 IntTrsBoundProof (UPPER BOUND(ID), 977 ms)
↳48 CpxRNTS
↳49 IntTrsBoundProof (UPPER BOUND(ID), 363 ms)
↳50 CpxRNTS
↳51 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳52 CpxRNTS
↳53 IntTrsBoundProof (UPPER BOUND(ID), 247 ms)
↳54 CpxRNTS
↳55 IntTrsBoundProof (UPPER BOUND(ID), 35 ms)
↳56 CpxRNTS
↳57 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳58 CpxRNTS
↳59 IntTrsBoundProof (UPPER BOUND(ID), 632 ms)
↳60 CpxRNTS
↳61 IntTrsBoundProof (UPPER BOUND(ID), 194 ms)
↳62 CpxRNTS
↳63 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳64 CpxRNTS
↳65 IntTrsBoundProof (UPPER BOUND(ID), 4828 ms)
↳66 CpxRNTS
↳67 IntTrsBoundProof (UPPER BOUND(ID), 1132 ms)
↳68 CpxRNTS
↳69 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳70 CpxRNTS
↳71 IntTrsBoundProof (UPPER BOUND(ID), 60 ms)
↳72 CpxRNTS
↳73 IntTrsBoundProof (UPPER BOUND(ID), 54 ms)
↳74 CpxRNTS
↳75 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳76 CpxRNTS
↳77 IntTrsBoundProof (UPPER BOUND(ID), 512 ms)
↳78 CpxRNTS
↳79 IntTrsBoundProof (UPPER BOUND(ID), 96 ms)
↳80 CpxRNTS
↳81 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳82 CpxRNTS
↳83 IntTrsBoundProof (UPPER BOUND(ID), 333 ms)
↳84 CpxRNTS
↳85 IntTrsBoundProof (UPPER BOUND(ID), 76 ms)
↳86 CpxRNTS
↳87 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳88 CpxRNTS
↳89 IntTrsBoundProof (UPPER BOUND(ID), 78 ms)
↳90 CpxRNTS
↳91 IntTrsBoundProof (UPPER BOUND(ID), 4 ms)
↳92 CpxRNTS
↳93 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳94 CpxRNTS
↳95 IntTrsBoundProof (UPPER BOUND(ID), 2711 ms)
↳96 CpxRNTS
↳97 IntTrsBoundProof (UPPER BOUND(ID), 663 ms)
↳98 CpxRNTS
↳99 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳100 CpxRNTS
↳101 IntTrsBoundProof (UPPER BOUND(ID), 82 ms)
↳102 CpxRNTS
↳103 IntTrsBoundProof (UPPER BOUND(ID), 0 ms)
↳104 CpxRNTS
↳105 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳106 CpxRNTS
↳107 IntTrsBoundProof (UPPER BOUND(ID), 223 ms)
↳108 CpxRNTS
↳109 IntTrsBoundProof (UPPER BOUND(ID), 5 ms)
↳110 CpxRNTS
↳111 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳112 CpxRNTS
↳113 IntTrsBoundProof (UPPER BOUND(ID), 1099 ms)
↳114 CpxRNTS
↳115 IntTrsBoundProof (UPPER BOUND(ID), 118 ms)
↳116 CpxRNTS
↳117 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳118 CpxRNTS
↳119 IntTrsBoundProof (UPPER BOUND(ID), 51 ms)
↳120 CpxRNTS
↳121 IntTrsBoundProof (UPPER BOUND(ID), 0 ms)
↳122 CpxRNTS
↳123 FinalProof (⇔, 5 ms)
↳124 BOUNDS(1, n^3)
#equal(@x, @y) → #eq(@x, @y)
#greater(@x, @y) → #ckgt(#compare(@x, @y))
append(@l, @ys) → append#1(@l, @ys)
append#1(::(@x, @xs), @ys) → ::(@x, append(@xs, @ys))
append#1(nil, @ys) → @ys
insert(@x, @l) → insert#1(@x, @l, @x)
insert#1(tuple#2(@valX, @keyX), @l, @x) → insert#2(@l, @keyX, @valX, @x)
insert#2(::(@l1, @ls), @keyX, @valX, @x) → insert#3(@l1, @keyX, @ls, @valX, @x)
insert#2(nil, @keyX, @valX, @x) → ::(tuple#2(::(@valX, nil), @keyX), nil)
insert#3(tuple#2(@vals1, @key1), @keyX, @ls, @valX, @x) → insert#4(#equal(@key1, @keyX), @key1, @ls, @valX, @vals1, @x)
insert#4(#false, @key1, @ls, @valX, @vals1, @x) → ::(tuple#2(@vals1, @key1), insert(@x, @ls))
insert#4(#true, @key1, @ls, @valX, @vals1, @x) → ::(tuple#2(::(@valX, @vals1), @key1), @ls)
quicksort(@l) → quicksort#1(@l)
quicksort#1(::(@z, @zs)) → quicksort#2(splitqs(@z, @zs), @z)
quicksort#1(nil) → nil
quicksort#2(tuple#2(@xs, @ys), @z) → append(quicksort(@xs), ::(@z, quicksort(@ys)))
sortAll(@l) → sortAll#1(@l)
sortAll#1(::(@x, @xs)) → sortAll#2(@x, @xs)
sortAll#1(nil) → nil
sortAll#2(tuple#2(@vals, @key), @xs) → ::(tuple#2(quicksort(@vals), @key), sortAll(@xs))
split(@l) → split#1(@l)
split#1(::(@x, @xs)) → insert(@x, split(@xs))
split#1(nil) → nil
splitAndSort(@l) → sortAll(split(@l))
splitqs(@pivot, @l) → splitqs#1(@l, @pivot)
splitqs#1(::(@x, @xs), @pivot) → splitqs#2(splitqs(@pivot, @xs), @pivot, @x)
splitqs#1(nil, @pivot) → tuple#2(nil, nil)
splitqs#2(tuple#2(@ls, @rs), @pivot, @x) → splitqs#3(#greater(@x, @pivot), @ls, @rs, @x)
splitqs#3(#false, @ls, @rs, @x) → tuple#2(::(@x, @ls), @rs)
splitqs#3(#true, @ls, @rs, @x) → tuple#2(@ls, ::(@x, @rs))
#and(#false, #false) → #false
#and(#false, #true) → #false
#and(#true, #false) → #false
#and(#true, #true) → #true
#ckgt(#EQ) → #false
#ckgt(#GT) → #true
#ckgt(#LT) → #false
#compare(#0, #0) → #EQ
#compare(#0, #neg(@y)) → #GT
#compare(#0, #pos(@y)) → #LT
#compare(#0, #s(@y)) → #LT
#compare(#neg(@x), #0) → #LT
#compare(#neg(@x), #neg(@y)) → #compare(@y, @x)
#compare(#neg(@x), #pos(@y)) → #LT
#compare(#pos(@x), #0) → #GT
#compare(#pos(@x), #neg(@y)) → #GT
#compare(#pos(@x), #pos(@y)) → #compare(@x, @y)
#compare(#s(@x), #0) → #GT
#compare(#s(@x), #s(@y)) → #compare(@x, @y)
#eq(#0, #0) → #true
#eq(#0, #neg(@y)) → #false
#eq(#0, #pos(@y)) → #false
#eq(#0, #s(@y)) → #false
#eq(#neg(@x), #0) → #false
#eq(#neg(@x), #neg(@y)) → #eq(@x, @y)
#eq(#neg(@x), #pos(@y)) → #false
#eq(#pos(@x), #0) → #false
#eq(#pos(@x), #neg(@y)) → #false
#eq(#pos(@x), #pos(@y)) → #eq(@x, @y)
#eq(#s(@x), #0) → #false
#eq(#s(@x), #s(@y)) → #eq(@x, @y)
#eq(::(@x_1, @x_2), ::(@y_1, @y_2)) → #and(#eq(@x_1, @y_1), #eq(@x_2, @y_2))
#eq(::(@x_1, @x_2), nil) → #false
#eq(::(@x_1, @x_2), tuple#2(@y_1, @y_2)) → #false
#eq(nil, ::(@y_1, @y_2)) → #false
#eq(nil, nil) → #true
#eq(nil, tuple#2(@y_1, @y_2)) → #false
#eq(tuple#2(@x_1, @x_2), ::(@y_1, @y_2)) → #false
#eq(tuple#2(@x_1, @x_2), nil) → #false
#eq(tuple#2(@x_1, @x_2), tuple#2(@y_1, @y_2)) → #and(#eq(@x_1, @y_1), #eq(@x_2, @y_2))
#equal(@x, @y) → #eq(@x, @y) [1]
#greater(@x, @y) → #ckgt(#compare(@x, @y)) [1]
append(@l, @ys) → append#1(@l, @ys) [1]
append#1(::(@x, @xs), @ys) → ::(@x, append(@xs, @ys)) [1]
append#1(nil, @ys) → @ys [1]
insert(@x, @l) → insert#1(@x, @l, @x) [1]
insert#1(tuple#2(@valX, @keyX), @l, @x) → insert#2(@l, @keyX, @valX, @x) [1]
insert#2(::(@l1, @ls), @keyX, @valX, @x) → insert#3(@l1, @keyX, @ls, @valX, @x) [1]
insert#2(nil, @keyX, @valX, @x) → ::(tuple#2(::(@valX, nil), @keyX), nil) [1]
insert#3(tuple#2(@vals1, @key1), @keyX, @ls, @valX, @x) → insert#4(#equal(@key1, @keyX), @key1, @ls, @valX, @vals1, @x) [1]
insert#4(#false, @key1, @ls, @valX, @vals1, @x) → ::(tuple#2(@vals1, @key1), insert(@x, @ls)) [1]
insert#4(#true, @key1, @ls, @valX, @vals1, @x) → ::(tuple#2(::(@valX, @vals1), @key1), @ls) [1]
quicksort(@l) → quicksort#1(@l) [1]
quicksort#1(::(@z, @zs)) → quicksort#2(splitqs(@z, @zs), @z) [1]
quicksort#1(nil) → nil [1]
quicksort#2(tuple#2(@xs, @ys), @z) → append(quicksort(@xs), ::(@z, quicksort(@ys))) [1]
sortAll(@l) → sortAll#1(@l) [1]
sortAll#1(::(@x, @xs)) → sortAll#2(@x, @xs) [1]
sortAll#1(nil) → nil [1]
sortAll#2(tuple#2(@vals, @key), @xs) → ::(tuple#2(quicksort(@vals), @key), sortAll(@xs)) [1]
split(@l) → split#1(@l) [1]
split#1(::(@x, @xs)) → insert(@x, split(@xs)) [1]
split#1(nil) → nil [1]
splitAndSort(@l) → sortAll(split(@l)) [1]
splitqs(@pivot, @l) → splitqs#1(@l, @pivot) [1]
splitqs#1(::(@x, @xs), @pivot) → splitqs#2(splitqs(@pivot, @xs), @pivot, @x) [1]
splitqs#1(nil, @pivot) → tuple#2(nil, nil) [1]
splitqs#2(tuple#2(@ls, @rs), @pivot, @x) → splitqs#3(#greater(@x, @pivot), @ls, @rs, @x) [1]
splitqs#3(#false, @ls, @rs, @x) → tuple#2(::(@x, @ls), @rs) [1]
splitqs#3(#true, @ls, @rs, @x) → tuple#2(@ls, ::(@x, @rs)) [1]
#and(#false, #false) → #false [0]
#and(#false, #true) → #false [0]
#and(#true, #false) → #false [0]
#and(#true, #true) → #true [0]
#ckgt(#EQ) → #false [0]
#ckgt(#GT) → #true [0]
#ckgt(#LT) → #false [0]
#compare(#0, #0) → #EQ [0]
#compare(#0, #neg(@y)) → #GT [0]
#compare(#0, #pos(@y)) → #LT [0]
#compare(#0, #s(@y)) → #LT [0]
#compare(#neg(@x), #0) → #LT [0]
#compare(#neg(@x), #neg(@y)) → #compare(@y, @x) [0]
#compare(#neg(@x), #pos(@y)) → #LT [0]
#compare(#pos(@x), #0) → #GT [0]
#compare(#pos(@x), #neg(@y)) → #GT [0]
#compare(#pos(@x), #pos(@y)) → #compare(@x, @y) [0]
#compare(#s(@x), #0) → #GT [0]
#compare(#s(@x), #s(@y)) → #compare(@x, @y) [0]
#eq(#0, #0) → #true [0]
#eq(#0, #neg(@y)) → #false [0]
#eq(#0, #pos(@y)) → #false [0]
#eq(#0, #s(@y)) → #false [0]
#eq(#neg(@x), #0) → #false [0]
#eq(#neg(@x), #neg(@y)) → #eq(@x, @y) [0]
#eq(#neg(@x), #pos(@y)) → #false [0]
#eq(#pos(@x), #0) → #false [0]
#eq(#pos(@x), #neg(@y)) → #false [0]
#eq(#pos(@x), #pos(@y)) → #eq(@x, @y) [0]
#eq(#s(@x), #0) → #false [0]
#eq(#s(@x), #s(@y)) → #eq(@x, @y) [0]
#eq(::(@x_1, @x_2), ::(@y_1, @y_2)) → #and(#eq(@x_1, @y_1), #eq(@x_2, @y_2)) [0]
#eq(::(@x_1, @x_2), nil) → #false [0]
#eq(::(@x_1, @x_2), tuple#2(@y_1, @y_2)) → #false [0]
#eq(nil, ::(@y_1, @y_2)) → #false [0]
#eq(nil, nil) → #true [0]
#eq(nil, tuple#2(@y_1, @y_2)) → #false [0]
#eq(tuple#2(@x_1, @x_2), ::(@y_1, @y_2)) → #false [0]
#eq(tuple#2(@x_1, @x_2), nil) → #false [0]
#eq(tuple#2(@x_1, @x_2), tuple#2(@y_1, @y_2)) → #and(#eq(@x_1, @y_1), #eq(@x_2, @y_2)) [0]
#equal(@x, @y) → #eq(@x, @y) [1]
#greater(@x, @y) → #ckgt(#compare(@x, @y)) [1]
append(@l, @ys) → append#1(@l, @ys) [1]
append#1(::(@x, @xs), @ys) → ::(@x, append(@xs, @ys)) [1]
append#1(nil, @ys) → @ys [1]
insert(@x, @l) → insert#1(@x, @l, @x) [1]
insert#1(tuple#2(@valX, @keyX), @l, @x) → insert#2(@l, @keyX, @valX, @x) [1]
insert#2(::(@l1, @ls), @keyX, @valX, @x) → insert#3(@l1, @keyX, @ls, @valX, @x) [1]
insert#2(nil, @keyX, @valX, @x) → ::(tuple#2(::(@valX, nil), @keyX), nil) [1]
insert#3(tuple#2(@vals1, @key1), @keyX, @ls, @valX, @x) → insert#4(#equal(@key1, @keyX), @key1, @ls, @valX, @vals1, @x) [1]
insert#4(#false, @key1, @ls, @valX, @vals1, @x) → ::(tuple#2(@vals1, @key1), insert(@x, @ls)) [1]
insert#4(#true, @key1, @ls, @valX, @vals1, @x) → ::(tuple#2(::(@valX, @vals1), @key1), @ls) [1]
quicksort(@l) → quicksort#1(@l) [1]
quicksort#1(::(@z, @zs)) → quicksort#2(splitqs(@z, @zs), @z) [1]
quicksort#1(nil) → nil [1]
quicksort#2(tuple#2(@xs, @ys), @z) → append(quicksort(@xs), ::(@z, quicksort(@ys))) [1]
sortAll(@l) → sortAll#1(@l) [1]
sortAll#1(::(@x, @xs)) → sortAll#2(@x, @xs) [1]
sortAll#1(nil) → nil [1]
sortAll#2(tuple#2(@vals, @key), @xs) → ::(tuple#2(quicksort(@vals), @key), sortAll(@xs)) [1]
split(@l) → split#1(@l) [1]
split#1(::(@x, @xs)) → insert(@x, split(@xs)) [1]
split#1(nil) → nil [1]
splitAndSort(@l) → sortAll(split(@l)) [1]
splitqs(@pivot, @l) → splitqs#1(@l, @pivot) [1]
splitqs#1(::(@x, @xs), @pivot) → splitqs#2(splitqs(@pivot, @xs), @pivot, @x) [1]
splitqs#1(nil, @pivot) → tuple#2(nil, nil) [1]
splitqs#2(tuple#2(@ls, @rs), @pivot, @x) → splitqs#3(#greater(@x, @pivot), @ls, @rs, @x) [1]
splitqs#3(#false, @ls, @rs, @x) → tuple#2(::(@x, @ls), @rs) [1]
splitqs#3(#true, @ls, @rs, @x) → tuple#2(@ls, ::(@x, @rs)) [1]
#and(#false, #false) → #false [0]
#and(#false, #true) → #false [0]
#and(#true, #false) → #false [0]
#and(#true, #true) → #true [0]
#ckgt(#EQ) → #false [0]
#ckgt(#GT) → #true [0]
#ckgt(#LT) → #false [0]
#compare(#0, #0) → #EQ [0]
#compare(#0, #neg(@y)) → #GT [0]
#compare(#0, #pos(@y)) → #LT [0]
#compare(#0, #s(@y)) → #LT [0]
#compare(#neg(@x), #0) → #LT [0]
#compare(#neg(@x), #neg(@y)) → #compare(@y, @x) [0]
#compare(#neg(@x), #pos(@y)) → #LT [0]
#compare(#pos(@x), #0) → #GT [0]
#compare(#pos(@x), #neg(@y)) → #GT [0]
#compare(#pos(@x), #pos(@y)) → #compare(@x, @y) [0]
#compare(#s(@x), #0) → #GT [0]
#compare(#s(@x), #s(@y)) → #compare(@x, @y) [0]
#eq(#0, #0) → #true [0]
#eq(#0, #neg(@y)) → #false [0]
#eq(#0, #pos(@y)) → #false [0]
#eq(#0, #s(@y)) → #false [0]
#eq(#neg(@x), #0) → #false [0]
#eq(#neg(@x), #neg(@y)) → #eq(@x, @y) [0]
#eq(#neg(@x), #pos(@y)) → #false [0]
#eq(#pos(@x), #0) → #false [0]
#eq(#pos(@x), #neg(@y)) → #false [0]
#eq(#pos(@x), #pos(@y)) → #eq(@x, @y) [0]
#eq(#s(@x), #0) → #false [0]
#eq(#s(@x), #s(@y)) → #eq(@x, @y) [0]
#eq(::(@x_1, @x_2), ::(@y_1, @y_2)) → #and(#eq(@x_1, @y_1), #eq(@x_2, @y_2)) [0]
#eq(::(@x_1, @x_2), nil) → #false [0]
#eq(::(@x_1, @x_2), tuple#2(@y_1, @y_2)) → #false [0]
#eq(nil, ::(@y_1, @y_2)) → #false [0]
#eq(nil, nil) → #true [0]
#eq(nil, tuple#2(@y_1, @y_2)) → #false [0]
#eq(tuple#2(@x_1, @x_2), ::(@y_1, @y_2)) → #false [0]
#eq(tuple#2(@x_1, @x_2), nil) → #false [0]
#eq(tuple#2(@x_1, @x_2), tuple#2(@y_1, @y_2)) → #and(#eq(@x_1, @y_1), #eq(@x_2, @y_2)) [0]
#equal :: :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s → #false:#true #eq :: :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s → #false:#true #greater :: :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s → #false:#true #ckgt :: #EQ:#GT:#LT → #false:#true #compare :: :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s → #EQ:#GT:#LT append :: :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s append#1 :: :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s :: :: :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s nil :: :::nil:tuple#2:#0:#neg:#pos:#s insert :: :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s insert#1 :: :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s tuple#2 :: :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s insert#2 :: :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s insert#3 :: :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s insert#4 :: #false:#true → :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s #false :: #false:#true #true :: #false:#true quicksort :: :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s quicksort#1 :: :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s quicksort#2 :: :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s splitqs :: :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s sortAll :: :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s sortAll#1 :: :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s sortAll#2 :: :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s split :: :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s split#1 :: :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s splitAndSort :: :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s splitqs#1 :: :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s splitqs#2 :: :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s splitqs#3 :: #false:#true → :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s #and :: #false:#true → #false:#true → #false:#true #EQ :: #EQ:#GT:#LT #GT :: #EQ:#GT:#LT #LT :: #EQ:#GT:#LT #0 :: :::nil:tuple#2:#0:#neg:#pos:#s #neg :: :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s #pos :: :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s #s :: :::nil:tuple#2:#0:#neg:#pos:#s → :::nil:tuple#2:#0:#neg:#pos:#s |
(a) The obligation is a constructor system where every type has a constant constructor,
(b) The following defined symbols do not have to be completely defined, as they can never occur inside other defined symbols:
sortAll
sortAll#1
sortAll#2
splitAndSort
quicksort
split
#greater
#equal
splitqs
split#1
insert
splitqs#1
splitqs#2
insert#1
quicksort#1
insert#2
insert#3
splitqs#3
insert#4
quicksort#2
append
append#1
#and
#ckgt
#compare
#eq
#and(v0, v1) → null_#and [0]
#ckgt(v0) → null_#ckgt [0]
#compare(v0, v1) → null_#compare [0]
#eq(v0, v1) → null_#eq [0]
split#1(v0) → null_split#1 [0]
splitqs#1(v0, v1) → null_splitqs#1 [0]
splitqs#2(v0, v1, v2) → null_splitqs#2 [0]
insert#1(v0, v1, v2) → null_insert#1 [0]
quicksort#1(v0) → null_quicksort#1 [0]
insert#2(v0, v1, v2, v3) → null_insert#2 [0]
insert#3(v0, v1, v2, v3, v4) → null_insert#3 [0]
splitqs#3(v0, v1, v2, v3) → null_splitqs#3 [0]
insert#4(v0, v1, v2, v3, v4, v5) → null_insert#4 [0]
quicksort#2(v0, v1) → null_quicksort#2 [0]
append#1(v0, v1) → null_append#1 [0]
null_#and, null_#ckgt, null_#compare, null_#eq, null_split#1, null_splitqs#1, null_splitqs#2, null_insert#1, null_quicksort#1, null_insert#2, null_insert#3, null_splitqs#3, null_insert#4, null_quicksort#2, null_append#1
Runtime Complexity Weighted TRS with Types. The TRS R consists of the following rules:
The TRS has the following type information:
Rewrite Strategy: INNERMOST |
Runtime Complexity Weighted TRS with Types. The TRS R consists of the following rules:
The TRS has the following type information:
Rewrite Strategy: INNERMOST |
nil => 1
#false => 1
#true => 2
#EQ => 1
#GT => 2
#LT => 3
#0 => 0
null_#and => 0
null_#ckgt => 0
null_#compare => 0
null_#eq => 0
null_split#1 => 0
null_splitqs#1 => 0
null_splitqs#2 => 0
null_insert#1 => 0
null_quicksort#1 => 0
null_insert#2 => 0
null_insert#3 => 0
null_splitqs#3 => 0
null_insert#4 => 0
null_quicksort#2 => 0
null_append#1 => 0
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: v0 >= 0, v1 >= 0, z = v0, z' = v1
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: v0 >= 0, z = v0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' = 1 + @y, @y >= 0
#compare(z, z') -{ 0 }→ 3 :|: @x >= 0, z = 1 + @x, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: @x >= 0, z = 1 + @x, z' = 1 + @y, @y >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' = 1 + @y, @y >= 0
#compare(z, z') -{ 0 }→ 2 :|: @x >= 0, z = 1 + @x, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: @x >= 0, z = 1 + @x, z' = 1 + @y, @y >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: v0 >= 0, v1 >= 0, z = v0, z' = v1
#compare(z, z') -{ 0 }→ #compare(@x, @y) :|: @x >= 0, z = 1 + @x, z' = 1 + @y, @y >= 0
#compare(z, z') -{ 0 }→ #compare(@y, @x) :|: @x >= 0, z = 1 + @x, z' = 1 + @y, @y >= 0
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' = 1 + @y, @y >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x >= 0, z = 1 + @x, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: @x >= 0, z = 1 + @x, z' = 1 + @y, @y >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: v0 >= 0, v1 >= 0, z = v0, z' = v1
#eq(z, z') -{ 0 }→ #eq(@x, @y) :|: @x >= 0, z = 1 + @x, z' = 1 + @y, @y >= 0
#eq(z, z') -{ 0 }→ #and(#eq(@x_1, @y_1), #eq(@x_2, @y_2)) :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#equal(z, z') -{ 1 }→ #eq(@x, @y) :|: z = @x, @x >= 0, z' = @y, @y >= 0
#greater(z, z') -{ 1 }→ #ckgt(3) :|: z' = 1 + @y'', @y'' >= 0, z = 0
#greater(z, z') -{ 1 }→ #ckgt(3) :|: z' = 1 + @y1, @y1 >= 0, z = 0
#greater(z, z') -{ 1 }→ #ckgt(3) :|: z = 1 + @x', @x' >= 0, z' = 0
#greater(z, z') -{ 1 }→ #ckgt(3) :|: @y3 >= 0, @x1 >= 0, z' = 1 + @y3, z = 1 + @x1
#greater(z, z') -{ 1 }→ #ckgt(2) :|: @y' >= 0, z' = 1 + @y', z = 0
#greater(z, z') -{ 1 }→ #ckgt(2) :|: @x2 >= 0, z = 1 + @x2, z' = 0
#greater(z, z') -{ 1 }→ #ckgt(2) :|: @x3 >= 0, z' = 1 + @y4, z = 1 + @x3, @y4 >= 0
#greater(z, z') -{ 1 }→ #ckgt(2) :|: z = 1 + @x5, @x5 >= 0, z' = 0
#greater(z, z') -{ 1 }→ #ckgt(1) :|: z = 0, z' = 0
#greater(z, z') -{ 1 }→ #ckgt(0) :|: z = @x, @x >= 0, z' = @y, @y >= 0
#greater(z, z') -{ 1 }→ #ckgt(#compare(@x4, @y5)) :|: z' = 1 + @y5, @y5 >= 0, z = 1 + @x4, @x4 >= 0
#greater(z, z') -{ 1 }→ #ckgt(#compare(@x6, @y6)) :|: z = 1 + @x6, z' = 1 + @y6, @x6 >= 0, @y6 >= 0
#greater(z, z') -{ 1 }→ #ckgt(#compare(@y2, @x'')) :|: z = 1 + @x'', z' = 1 + @y2, @y2 >= 0, @x'' >= 0
append(z, z') -{ 1 }→ append#1(@l, @ys) :|: z = @l, @l >= 0, z' = @ys, @ys >= 0
append#1(z, z') -{ 1 }→ @ys :|: z' = @ys, z = 1, @ys >= 0
append#1(z, z') -{ 0 }→ 0 :|: v0 >= 0, v1 >= 0, z = v0, z' = v1
append#1(z, z') -{ 1 }→ 1 + @x + append(@xs, @ys) :|: z' = @ys, @x >= 0, z = 1 + @x + @xs, @xs >= 0, @ys >= 0
insert(z, z') -{ 1 }→ insert#1(@x, @l, @x) :|: z = @x, @l >= 0, @x >= 0, z' = @l
insert#1(z, z', z'') -{ 1 }→ insert#2(@l, @keyX, @valX, @x) :|: @valX >= 0, @keyX >= 0, @l >= 0, z = 1 + @valX + @keyX, @x >= 0, z' = @l, z'' = @x
insert#1(z, z', z'') -{ 0 }→ 0 :|: v0 >= 0, z'' = v2, v1 >= 0, z = v0, z' = v1, v2 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ insert#3(@l1, @keyX, @ls, @valX, @x) :|: z1 = @x, @ls >= 0, @keyX >= 0, @valX >= 0, @l1 >= 0, @x >= 0, z = 1 + @l1 + @ls, z'' = @valX, z' = @keyX
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z1 = v3, v0 >= 0, z'' = v2, v1 >= 0, z = v0, z' = v1, v2 >= 0, v3 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + @valX + 1) + @keyX) + 1 :|: z1 = @x, @keyX >= 0, @valX >= 0, @x >= 0, z = 1, z'' = @valX, z' = @keyX
insert#3(z, z', z'', z1, z2) -{ 2 }→ insert#4(#eq(@key1, @keyX), @key1, @ls, @valX, @vals1, @x) :|: @key1 >= 0, @keyX >= 0, @ls >= 0, @valX >= 0, @x >= 0, @vals1 >= 0, z1 = @valX, z2 = @x, z = 1 + @vals1 + @key1, z' = @keyX, z'' = @ls
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z1 = v3, v0 >= 0, v4 >= 0, z'' = v2, v1 >= 0, z = v0, z' = v1, z2 = v4, v2 >= 0, v3 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z1 = v3, z3 = v5, v0 >= 0, v4 >= 0, z'' = v2, v1 >= 0, v5 >= 0, z = v0, z' = v1, z2 = v4, v2 >= 0, v3 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + @vals1 + @key1) + insert(@x, @ls) :|: @key1 >= 0, @ls >= 0, @valX >= 0, @x >= 0, @vals1 >= 0, z = 1, z1 = @valX, z2 = @vals1, z' = @key1, z3 = @x, z'' = @ls
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + @valX + @vals1) + @key1) + @ls :|: z = 2, @key1 >= 0, @ls >= 0, @valX >= 0, @x >= 0, @vals1 >= 0, z1 = @valX, z2 = @vals1, z' = @key1, z3 = @x, z'' = @ls
quicksort(z) -{ 1 }→ quicksort#1(@l) :|: z = @l, @l >= 0
quicksort#1(z) -{ 2 }→ quicksort#2(splitqs#1(@zs, @z), @z) :|: z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: v0 >= 0, z = v0
quicksort#2(z, z') -{ 3 }→ append(quicksort#1(@xs), 1 + @z + quicksort#1(@ys)) :|: z' = @z, z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, @z >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: v0 >= 0, v1 >= 0, z = v0, z' = v1
sortAll(z) -{ 1 }→ sortAll#1(@l) :|: z = @l, @l >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(@xs) :|: z' = @xs, @vals >= 0, z = 1 + @vals + @key, @xs >= 0, @key >= 0
split(z) -{ 1 }→ split#1(@l) :|: z = @l, @l >= 0
split#1(z) -{ 2 }→ insert(@x, split#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: v0 >= 0, z = v0
splitAndSort(z) -{ 2 }→ sortAll(split#1(@l)) :|: z = @l, @l >= 0
splitqs(z, z') -{ 1 }→ splitqs#1(@l, @pivot) :|: @l >= 0, z = @pivot, z' = @l, @pivot >= 0
splitqs#1(z, z') -{ 2 }→ splitqs#2(splitqs#1(@xs, @pivot), @pivot, @x) :|: @x >= 0, z = 1 + @x + @xs, z' = @pivot, @xs >= 0, @pivot >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: v0 >= 0, v1 >= 0, z = v0, z' = v1
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' = @pivot, @pivot >= 0
splitqs#2(z, z', z'') -{ 2 }→ splitqs#3(#ckgt(#compare(@x, @pivot)), @ls, @rs, @x) :|: @ls >= 0, z = 1 + @ls + @rs, @x >= 0, z' = @pivot, @pivot >= 0, z'' = @x, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: v0 >= 0, z'' = v2, v1 >= 0, z = v0, z' = v1, v2 >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z1 = v3, v0 >= 0, z'' = v2, v1 >= 0, z = v0, z' = v1, v2 >= 0, v3 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + @ls + (1 + @x + @rs) :|: z = 2, z1 = @x, @ls >= 0, @x >= 0, z' = @ls, @rs >= 0, z'' = @rs
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + @x + @ls) + @rs :|: z1 = @x, @ls >= 0, @x >= 0, z = 1, z' = @ls, @rs >= 0, z'' = @rs
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + @x + @ls) + @rs :|: z1 = @x, @ls >= 0, @x >= 0, z = 1, z' = @ls, @rs >= 0, z'' = @rs
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + @ls + (1 + @x + @rs) :|: z = 2, z1 = @x, @ls >= 0, @x >= 0, z' = @ls, @rs >= 0, z'' = @rs
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z1 = v3, v0 >= 0, z'' = v2, v1 >= 0, z = v0, z' = v1, v2 >= 0, v3 >= 0
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 0 :|: v0 >= 0, v1 >= 0, z = v0, z' = v1
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: v0 >= 0, z = v0
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: v0 >= 0, v1 >= 0, z = v0, z' = v1
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: v0 >= 0, z = v0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' = 1 + @y, @y >= 0
#compare(z, z') -{ 0 }→ 3 :|: @x >= 0, z = 1 + @x, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: @x >= 0, z = 1 + @x, z' = 1 + @y, @y >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' = 1 + @y, @y >= 0
#compare(z, z') -{ 0 }→ 2 :|: @x >= 0, z = 1 + @x, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: @x >= 0, z = 1 + @x, z' = 1 + @y, @y >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: v0 >= 0, v1 >= 0, z = v0, z' = v1
#compare(z, z') -{ 0 }→ #compare(@x, @y) :|: @x >= 0, z = 1 + @x, z' = 1 + @y, @y >= 0
#compare(z, z') -{ 0 }→ #compare(@y, @x) :|: @x >= 0, z = 1 + @x, z' = 1 + @y, @y >= 0
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' = 1 + @y, @y >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x >= 0, z = 1 + @x, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: @x >= 0, z = 1 + @x, z' = 1 + @y, @y >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: v0 >= 0, v1 >= 0, z = v0, z' = v1
#eq(z, z') -{ 0 }→ #eq(@x, @y) :|: @x >= 0, z = 1 + @x, z' = 1 + @y, @y >= 0
#eq(z, z') -{ 0 }→ #and(#eq(@x_1, @y_1), #eq(@x_2, @y_2)) :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#equal(z, z') -{ 1 }→ #eq(@x, @y) :|: z = @x, @x >= 0, z' = @y, @y >= 0
#greater(z, z') -{ 1 }→ 2 :|: @y' >= 0, z' = 1 + @y', z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: @x2 >= 0, z = 1 + @x2, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: @x3 >= 0, z' = 1 + @y4, z = 1 + @x3, @y4 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z = 1 + @x5, @x5 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' = 1 + @y'', @y'' >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' = 1 + @y1, @y1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z = 1 + @x', @x' >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: @y3 >= 0, @x1 >= 0, z' = 1 + @y3, z = 1 + @x1, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: @y' >= 0, z' = 1 + @y', z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' = 1 + @y'', @y'' >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' = 1 + @y1, @y1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z = 1 + @x', @x' >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: @y3 >= 0, @x1 >= 0, z' = 1 + @y3, z = 1 + @x1, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: @x2 >= 0, z = 1 + @x2, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: @x3 >= 0, z' = 1 + @y4, z = 1 + @x3, @y4 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z = 1 + @x5, @x5 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z = @x, @x >= 0, z' = @y, @y >= 0, v0 >= 0, 0 = v0
#greater(z, z') -{ 1 }→ #ckgt(#compare(@x4, @y5)) :|: z' = 1 + @y5, @y5 >= 0, z = 1 + @x4, @x4 >= 0
#greater(z, z') -{ 1 }→ #ckgt(#compare(@x6, @y6)) :|: z = 1 + @x6, z' = 1 + @y6, @x6 >= 0, @y6 >= 0
#greater(z, z') -{ 1 }→ #ckgt(#compare(@y2, @x'')) :|: z = 1 + @x'', z' = 1 + @y2, @y2 >= 0, @x'' >= 0
append(z, z') -{ 1 }→ append#1(@l, @ys) :|: z = @l, @l >= 0, z' = @ys, @ys >= 0
append#1(z, z') -{ 1 }→ @ys :|: z' = @ys, z = 1, @ys >= 0
append#1(z, z') -{ 0 }→ 0 :|: v0 >= 0, v1 >= 0, z = v0, z' = v1
append#1(z, z') -{ 1 }→ 1 + @x + append(@xs, @ys) :|: z' = @ys, @x >= 0, z = 1 + @x + @xs, @xs >= 0, @ys >= 0
insert(z, z') -{ 1 }→ insert#1(@x, @l, @x) :|: z = @x, @l >= 0, @x >= 0, z' = @l
insert#1(z, z', z'') -{ 1 }→ insert#2(@l, @keyX, @valX, @x) :|: @valX >= 0, @keyX >= 0, @l >= 0, z = 1 + @valX + @keyX, @x >= 0, z' = @l, z'' = @x
insert#1(z, z', z'') -{ 0 }→ 0 :|: v0 >= 0, z'' = v2, v1 >= 0, z = v0, z' = v1, v2 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ insert#3(@l1, @keyX, @ls, @valX, @x) :|: z1 = @x, @ls >= 0, @keyX >= 0, @valX >= 0, @l1 >= 0, @x >= 0, z = 1 + @l1 + @ls, z'' = @valX, z' = @keyX
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z1 = v3, v0 >= 0, z'' = v2, v1 >= 0, z = v0, z' = v1, v2 >= 0, v3 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + @valX + 1) + @keyX) + 1 :|: z1 = @x, @keyX >= 0, @valX >= 0, @x >= 0, z = 1, z'' = @valX, z' = @keyX
insert#3(z, z', z'', z1, z2) -{ 2 }→ insert#4(#eq(@key1, @keyX), @key1, @ls, @valX, @vals1, @x) :|: @key1 >= 0, @keyX >= 0, @ls >= 0, @valX >= 0, @x >= 0, @vals1 >= 0, z1 = @valX, z2 = @x, z = 1 + @vals1 + @key1, z' = @keyX, z'' = @ls
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z1 = v3, v0 >= 0, v4 >= 0, z'' = v2, v1 >= 0, z = v0, z' = v1, z2 = v4, v2 >= 0, v3 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z1 = v3, z3 = v5, v0 >= 0, v4 >= 0, z'' = v2, v1 >= 0, v5 >= 0, z = v0, z' = v1, z2 = v4, v2 >= 0, v3 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + @vals1 + @key1) + insert(@x, @ls) :|: @key1 >= 0, @ls >= 0, @valX >= 0, @x >= 0, @vals1 >= 0, z = 1, z1 = @valX, z2 = @vals1, z' = @key1, z3 = @x, z'' = @ls
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + @valX + @vals1) + @key1) + @ls :|: z = 2, @key1 >= 0, @ls >= 0, @valX >= 0, @x >= 0, @vals1 >= 0, z1 = @valX, z2 = @vals1, z' = @key1, z3 = @x, z'' = @ls
quicksort(z) -{ 1 }→ quicksort#1(@l) :|: z = @l, @l >= 0
quicksort#1(z) -{ 2 }→ quicksort#2(splitqs#1(@zs, @z), @z) :|: z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: v0 >= 0, z = v0
quicksort#2(z, z') -{ 3 }→ append(quicksort#1(@xs), 1 + @z + quicksort#1(@ys)) :|: z' = @z, z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, @z >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: v0 >= 0, v1 >= 0, z = v0, z' = v1
sortAll(z) -{ 1 }→ sortAll#1(@l) :|: z = @l, @l >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(@xs) :|: z' = @xs, @vals >= 0, z = 1 + @vals + @key, @xs >= 0, @key >= 0
split(z) -{ 1 }→ split#1(@l) :|: z = @l, @l >= 0
split#1(z) -{ 2 }→ insert(@x, split#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: v0 >= 0, z = v0
splitAndSort(z) -{ 2 }→ sortAll(split#1(@l)) :|: z = @l, @l >= 0
splitqs(z, z') -{ 1 }→ splitqs#1(@l, @pivot) :|: @l >= 0, z = @pivot, z' = @l, @pivot >= 0
splitqs#1(z, z') -{ 2 }→ splitqs#2(splitqs#1(@xs, @pivot), @pivot, @x) :|: @x >= 0, z = 1 + @x + @xs, z' = @pivot, @xs >= 0, @pivot >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: v0 >= 0, v1 >= 0, z = v0, z' = v1
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' = @pivot, @pivot >= 0
splitqs#2(z, z', z'') -{ 2 }→ splitqs#3(#ckgt(#compare(@x, @pivot)), @ls, @rs, @x) :|: @ls >= 0, z = 1 + @ls + @rs, @x >= 0, z' = @pivot, @pivot >= 0, z'' = @x, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: v0 >= 0, z'' = v2, v1 >= 0, z = v0, z' = v1, v2 >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z1 = v3, v0 >= 0, z'' = v2, v1 >= 0, z = v0, z' = v1, v2 >= 0, v3 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + @ls + (1 + @x + @rs) :|: z = 2, z1 = @x, @ls >= 0, @x >= 0, z' = @ls, @rs >= 0, z'' = @rs
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + @x + @ls) + @rs :|: z1 = @x, @ls >= 0, @x >= 0, z = 1, z' = @ls, @rs >= 0, z'' = @rs
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#compare(z, z') -{ 0 }→ #compare(z - 1, z' - 1) :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ #compare(z' - 1, z - 1) :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ #eq(z - 1, z' - 1) :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ #and(#eq(@x_1, @y_1), #eq(@x_2, @y_2)) :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#equal(z, z') -{ 1 }→ #eq(z, z') :|: z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
#greater(z, z') -{ 1 }→ #ckgt(#compare(z - 1, z' - 1)) :|: z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ #ckgt(#compare(z' - 1, z - 1)) :|: z' - 1 >= 0, z - 1 >= 0
append(z, z') -{ 1 }→ append#1(z, z') :|: z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ 1 + @x + append(@xs, z') :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 1 }→ insert#1(z, z', z) :|: z' >= 0, z >= 0
insert#1(z, z', z'') -{ 1 }→ insert#2(z', @keyX, @valX, z'') :|: @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 1 }→ insert#3(@l1, z', @ls, z'', z1) :|: @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 2 }→ insert#4(#eq(@key1, z'), @key1, z'', z1, @vals1, z2) :|: @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + z2 + z') + insert(z3, z'') :|: z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 1 }→ quicksort#1(z) :|: z >= 0
quicksort#1(z) -{ 2 }→ quicksort#2(splitqs#1(@zs, @z), @z) :|: z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 3 }→ append(quicksort#1(@xs), 1 + z' + quicksort#1(@ys)) :|: z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(z') :|: @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 1 }→ split#1(z) :|: z >= 0
split#1(z) -{ 2 }→ insert(@x, split#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 2 }→ sortAll(split#1(z)) :|: z >= 0
splitqs(z, z') -{ 1 }→ splitqs#1(z', z) :|: z' >= 0, z >= 0
splitqs#1(z, z') -{ 2 }→ splitqs#2(splitqs#1(@xs, z'), z', @x) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 2 }→ splitqs#3(#ckgt(#compare(z'', z')), @ls, @rs, z'') :|: @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
{ #and } { #compare } { #ckgt } { splitqs#3 } { append#1, append } { #eq } { splitqs#2 } { #greater } { insert#4, insert#2, insert, insert#3, insert#1 } { #equal } { splitqs#1 } { split#1 } { splitqs } { quicksort#1, quicksort#2 } { split } { quicksort } { sortAll#2, sortAll, sortAll#1 } { splitAndSort } |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#compare(z, z') -{ 0 }→ #compare(z - 1, z' - 1) :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ #compare(z' - 1, z - 1) :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ #eq(z - 1, z' - 1) :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ #and(#eq(@x_1, @y_1), #eq(@x_2, @y_2)) :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#equal(z, z') -{ 1 }→ #eq(z, z') :|: z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
#greater(z, z') -{ 1 }→ #ckgt(#compare(z - 1, z' - 1)) :|: z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ #ckgt(#compare(z' - 1, z - 1)) :|: z' - 1 >= 0, z - 1 >= 0
append(z, z') -{ 1 }→ append#1(z, z') :|: z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ 1 + @x + append(@xs, z') :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 1 }→ insert#1(z, z', z) :|: z' >= 0, z >= 0
insert#1(z, z', z'') -{ 1 }→ insert#2(z', @keyX, @valX, z'') :|: @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 1 }→ insert#3(@l1, z', @ls, z'', z1) :|: @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 2 }→ insert#4(#eq(@key1, z'), @key1, z'', z1, @vals1, z2) :|: @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + z2 + z') + insert(z3, z'') :|: z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 1 }→ quicksort#1(z) :|: z >= 0
quicksort#1(z) -{ 2 }→ quicksort#2(splitqs#1(@zs, @z), @z) :|: z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 3 }→ append(quicksort#1(@xs), 1 + z' + quicksort#1(@ys)) :|: z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(z') :|: @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 1 }→ split#1(z) :|: z >= 0
split#1(z) -{ 2 }→ insert(@x, split#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 2 }→ sortAll(split#1(z)) :|: z >= 0
splitqs(z, z') -{ 1 }→ splitqs#1(z', z) :|: z' >= 0, z >= 0
splitqs#1(z, z') -{ 2 }→ splitqs#2(splitqs#1(@xs, z'), z', @x) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 2 }→ splitqs#3(#ckgt(#compare(z'', z')), @ls, @rs, z'') :|: @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#compare(z, z') -{ 0 }→ #compare(z - 1, z' - 1) :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ #compare(z' - 1, z - 1) :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ #eq(z - 1, z' - 1) :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ #and(#eq(@x_1, @y_1), #eq(@x_2, @y_2)) :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#equal(z, z') -{ 1 }→ #eq(z, z') :|: z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
#greater(z, z') -{ 1 }→ #ckgt(#compare(z - 1, z' - 1)) :|: z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ #ckgt(#compare(z' - 1, z - 1)) :|: z' - 1 >= 0, z - 1 >= 0
append(z, z') -{ 1 }→ append#1(z, z') :|: z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ 1 + @x + append(@xs, z') :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 1 }→ insert#1(z, z', z) :|: z' >= 0, z >= 0
insert#1(z, z', z'') -{ 1 }→ insert#2(z', @keyX, @valX, z'') :|: @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 1 }→ insert#3(@l1, z', @ls, z'', z1) :|: @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 2 }→ insert#4(#eq(@key1, z'), @key1, z'', z1, @vals1, z2) :|: @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + z2 + z') + insert(z3, z'') :|: z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 1 }→ quicksort#1(z) :|: z >= 0
quicksort#1(z) -{ 2 }→ quicksort#2(splitqs#1(@zs, @z), @z) :|: z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 3 }→ append(quicksort#1(@xs), 1 + z' + quicksort#1(@ys)) :|: z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(z') :|: @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 1 }→ split#1(z) :|: z >= 0
split#1(z) -{ 2 }→ insert(@x, split#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 2 }→ sortAll(split#1(z)) :|: z >= 0
splitqs(z, z') -{ 1 }→ splitqs#1(z', z) :|: z' >= 0, z >= 0
splitqs#1(z, z') -{ 2 }→ splitqs#2(splitqs#1(@xs, z'), z', @x) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 2 }→ splitqs#3(#ckgt(#compare(z'', z')), @ls, @rs, z'') :|: @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: ?, size: O(1) [2] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#compare(z, z') -{ 0 }→ #compare(z - 1, z' - 1) :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ #compare(z' - 1, z - 1) :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ #eq(z - 1, z' - 1) :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ #and(#eq(@x_1, @y_1), #eq(@x_2, @y_2)) :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#equal(z, z') -{ 1 }→ #eq(z, z') :|: z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
#greater(z, z') -{ 1 }→ #ckgt(#compare(z - 1, z' - 1)) :|: z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ #ckgt(#compare(z' - 1, z - 1)) :|: z' - 1 >= 0, z - 1 >= 0
append(z, z') -{ 1 }→ append#1(z, z') :|: z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ 1 + @x + append(@xs, z') :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 1 }→ insert#1(z, z', z) :|: z' >= 0, z >= 0
insert#1(z, z', z'') -{ 1 }→ insert#2(z', @keyX, @valX, z'') :|: @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 1 }→ insert#3(@l1, z', @ls, z'', z1) :|: @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 2 }→ insert#4(#eq(@key1, z'), @key1, z'', z1, @vals1, z2) :|: @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + z2 + z') + insert(z3, z'') :|: z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 1 }→ quicksort#1(z) :|: z >= 0
quicksort#1(z) -{ 2 }→ quicksort#2(splitqs#1(@zs, @z), @z) :|: z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 3 }→ append(quicksort#1(@xs), 1 + z' + quicksort#1(@ys)) :|: z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(z') :|: @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 1 }→ split#1(z) :|: z >= 0
split#1(z) -{ 2 }→ insert(@x, split#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 2 }→ sortAll(split#1(z)) :|: z >= 0
splitqs(z, z') -{ 1 }→ splitqs#1(z', z) :|: z' >= 0, z >= 0
splitqs#1(z, z') -{ 2 }→ splitqs#2(splitqs#1(@xs, z'), z', @x) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 2 }→ splitqs#3(#ckgt(#compare(z'', z')), @ls, @rs, z'') :|: @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#compare(z, z') -{ 0 }→ #compare(z - 1, z' - 1) :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ #compare(z' - 1, z - 1) :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ #eq(z - 1, z' - 1) :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ #and(#eq(@x_1, @y_1), #eq(@x_2, @y_2)) :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#equal(z, z') -{ 1 }→ #eq(z, z') :|: z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
#greater(z, z') -{ 1 }→ #ckgt(#compare(z - 1, z' - 1)) :|: z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ #ckgt(#compare(z' - 1, z - 1)) :|: z' - 1 >= 0, z - 1 >= 0
append(z, z') -{ 1 }→ append#1(z, z') :|: z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ 1 + @x + append(@xs, z') :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 1 }→ insert#1(z, z', z) :|: z' >= 0, z >= 0
insert#1(z, z', z'') -{ 1 }→ insert#2(z', @keyX, @valX, z'') :|: @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 1 }→ insert#3(@l1, z', @ls, z'', z1) :|: @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 2 }→ insert#4(#eq(@key1, z'), @key1, z'', z1, @vals1, z2) :|: @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + z2 + z') + insert(z3, z'') :|: z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 1 }→ quicksort#1(z) :|: z >= 0
quicksort#1(z) -{ 2 }→ quicksort#2(splitqs#1(@zs, @z), @z) :|: z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 3 }→ append(quicksort#1(@xs), 1 + z' + quicksort#1(@ys)) :|: z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(z') :|: @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 1 }→ split#1(z) :|: z >= 0
split#1(z) -{ 2 }→ insert(@x, split#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 2 }→ sortAll(split#1(z)) :|: z >= 0
splitqs(z, z') -{ 1 }→ splitqs#1(z', z) :|: z' >= 0, z >= 0
splitqs#1(z, z') -{ 2 }→ splitqs#2(splitqs#1(@xs, z'), z', @x) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 2 }→ splitqs#3(#ckgt(#compare(z'', z')), @ls, @rs, z'') :|: @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#compare(z, z') -{ 0 }→ #compare(z - 1, z' - 1) :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ #compare(z' - 1, z - 1) :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ #eq(z - 1, z' - 1) :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ #and(#eq(@x_1, @y_1), #eq(@x_2, @y_2)) :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#equal(z, z') -{ 1 }→ #eq(z, z') :|: z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
#greater(z, z') -{ 1 }→ #ckgt(#compare(z - 1, z' - 1)) :|: z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ #ckgt(#compare(z' - 1, z - 1)) :|: z' - 1 >= 0, z - 1 >= 0
append(z, z') -{ 1 }→ append#1(z, z') :|: z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ 1 + @x + append(@xs, z') :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 1 }→ insert#1(z, z', z) :|: z' >= 0, z >= 0
insert#1(z, z', z'') -{ 1 }→ insert#2(z', @keyX, @valX, z'') :|: @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 1 }→ insert#3(@l1, z', @ls, z'', z1) :|: @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 2 }→ insert#4(#eq(@key1, z'), @key1, z'', z1, @vals1, z2) :|: @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + z2 + z') + insert(z3, z'') :|: z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 1 }→ quicksort#1(z) :|: z >= 0
quicksort#1(z) -{ 2 }→ quicksort#2(splitqs#1(@zs, @z), @z) :|: z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 3 }→ append(quicksort#1(@xs), 1 + z' + quicksort#1(@ys)) :|: z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(z') :|: @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 1 }→ split#1(z) :|: z >= 0
split#1(z) -{ 2 }→ insert(@x, split#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 2 }→ sortAll(split#1(z)) :|: z >= 0
splitqs(z, z') -{ 1 }→ splitqs#1(z', z) :|: z' >= 0, z >= 0
splitqs#1(z, z') -{ 2 }→ splitqs#2(splitqs#1(@xs, z'), z', @x) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 2 }→ splitqs#3(#ckgt(#compare(z'', z')), @ls, @rs, z'') :|: @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: ?, size: O(1) [3] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#compare(z, z') -{ 0 }→ #compare(z - 1, z' - 1) :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ #compare(z' - 1, z - 1) :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ #eq(z - 1, z' - 1) :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ #and(#eq(@x_1, @y_1), #eq(@x_2, @y_2)) :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#equal(z, z') -{ 1 }→ #eq(z, z') :|: z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
#greater(z, z') -{ 1 }→ #ckgt(#compare(z - 1, z' - 1)) :|: z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ #ckgt(#compare(z' - 1, z - 1)) :|: z' - 1 >= 0, z - 1 >= 0
append(z, z') -{ 1 }→ append#1(z, z') :|: z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ 1 + @x + append(@xs, z') :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 1 }→ insert#1(z, z', z) :|: z' >= 0, z >= 0
insert#1(z, z', z'') -{ 1 }→ insert#2(z', @keyX, @valX, z'') :|: @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 1 }→ insert#3(@l1, z', @ls, z'', z1) :|: @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 2 }→ insert#4(#eq(@key1, z'), @key1, z'', z1, @vals1, z2) :|: @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + z2 + z') + insert(z3, z'') :|: z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 1 }→ quicksort#1(z) :|: z >= 0
quicksort#1(z) -{ 2 }→ quicksort#2(splitqs#1(@zs, @z), @z) :|: z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 3 }→ append(quicksort#1(@xs), 1 + z' + quicksort#1(@ys)) :|: z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(z') :|: @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 1 }→ split#1(z) :|: z >= 0
split#1(z) -{ 2 }→ insert(@x, split#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 2 }→ sortAll(split#1(z)) :|: z >= 0
splitqs(z, z') -{ 1 }→ splitqs#1(z', z) :|: z' >= 0, z >= 0
splitqs#1(z, z') -{ 2 }→ splitqs#2(splitqs#1(@xs, z'), z', @x) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 2 }→ splitqs#3(#ckgt(#compare(z'', z')), @ls, @rs, z'') :|: @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: O(1) [0], size: O(1) [3] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ #eq(z - 1, z' - 1) :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ #and(#eq(@x_1, @y_1), #eq(@x_2, @y_2)) :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#equal(z, z') -{ 1 }→ #eq(z, z') :|: z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
#greater(z, z') -{ 1 }→ #ckgt(s'') :|: s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ #ckgt(s1) :|: s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
append(z, z') -{ 1 }→ append#1(z, z') :|: z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ 1 + @x + append(@xs, z') :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 1 }→ insert#1(z, z', z) :|: z' >= 0, z >= 0
insert#1(z, z', z'') -{ 1 }→ insert#2(z', @keyX, @valX, z'') :|: @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 1 }→ insert#3(@l1, z', @ls, z'', z1) :|: @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 2 }→ insert#4(#eq(@key1, z'), @key1, z'', z1, @vals1, z2) :|: @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + z2 + z') + insert(z3, z'') :|: z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 1 }→ quicksort#1(z) :|: z >= 0
quicksort#1(z) -{ 2 }→ quicksort#2(splitqs#1(@zs, @z), @z) :|: z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 3 }→ append(quicksort#1(@xs), 1 + z' + quicksort#1(@ys)) :|: z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(z') :|: @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 1 }→ split#1(z) :|: z >= 0
split#1(z) -{ 2 }→ insert(@x, split#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 2 }→ sortAll(split#1(z)) :|: z >= 0
splitqs(z, z') -{ 1 }→ splitqs#1(z', z) :|: z' >= 0, z >= 0
splitqs#1(z, z') -{ 2 }→ splitqs#2(splitqs#1(@xs, z'), z', @x) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 2 }→ splitqs#3(#ckgt(s2), @ls, @rs, z'') :|: s2 >= 0, s2 <= 3, @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: O(1) [0], size: O(1) [3] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ #eq(z - 1, z' - 1) :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ #and(#eq(@x_1, @y_1), #eq(@x_2, @y_2)) :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#equal(z, z') -{ 1 }→ #eq(z, z') :|: z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
#greater(z, z') -{ 1 }→ #ckgt(s'') :|: s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ #ckgt(s1) :|: s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
append(z, z') -{ 1 }→ append#1(z, z') :|: z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ 1 + @x + append(@xs, z') :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 1 }→ insert#1(z, z', z) :|: z' >= 0, z >= 0
insert#1(z, z', z'') -{ 1 }→ insert#2(z', @keyX, @valX, z'') :|: @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 1 }→ insert#3(@l1, z', @ls, z'', z1) :|: @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 2 }→ insert#4(#eq(@key1, z'), @key1, z'', z1, @vals1, z2) :|: @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + z2 + z') + insert(z3, z'') :|: z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 1 }→ quicksort#1(z) :|: z >= 0
quicksort#1(z) -{ 2 }→ quicksort#2(splitqs#1(@zs, @z), @z) :|: z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 3 }→ append(quicksort#1(@xs), 1 + z' + quicksort#1(@ys)) :|: z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(z') :|: @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 1 }→ split#1(z) :|: z >= 0
split#1(z) -{ 2 }→ insert(@x, split#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 2 }→ sortAll(split#1(z)) :|: z >= 0
splitqs(z, z') -{ 1 }→ splitqs#1(z', z) :|: z' >= 0, z >= 0
splitqs#1(z, z') -{ 2 }→ splitqs#2(splitqs#1(@xs, z'), z', @x) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 2 }→ splitqs#3(#ckgt(s2), @ls, @rs, z'') :|: s2 >= 0, s2 <= 3, @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: O(1) [0], size: O(1) [3] #ckgt: runtime: ?, size: O(1) [2] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ #eq(z - 1, z' - 1) :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ #and(#eq(@x_1, @y_1), #eq(@x_2, @y_2)) :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#equal(z, z') -{ 1 }→ #eq(z, z') :|: z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
#greater(z, z') -{ 1 }→ #ckgt(s'') :|: s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ #ckgt(s1) :|: s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
append(z, z') -{ 1 }→ append#1(z, z') :|: z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ 1 + @x + append(@xs, z') :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 1 }→ insert#1(z, z', z) :|: z' >= 0, z >= 0
insert#1(z, z', z'') -{ 1 }→ insert#2(z', @keyX, @valX, z'') :|: @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 1 }→ insert#3(@l1, z', @ls, z'', z1) :|: @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 2 }→ insert#4(#eq(@key1, z'), @key1, z'', z1, @vals1, z2) :|: @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + z2 + z') + insert(z3, z'') :|: z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 1 }→ quicksort#1(z) :|: z >= 0
quicksort#1(z) -{ 2 }→ quicksort#2(splitqs#1(@zs, @z), @z) :|: z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 3 }→ append(quicksort#1(@xs), 1 + z' + quicksort#1(@ys)) :|: z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(z') :|: @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 1 }→ split#1(z) :|: z >= 0
split#1(z) -{ 2 }→ insert(@x, split#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 2 }→ sortAll(split#1(z)) :|: z >= 0
splitqs(z, z') -{ 1 }→ splitqs#1(z', z) :|: z' >= 0, z >= 0
splitqs#1(z, z') -{ 2 }→ splitqs#2(splitqs#1(@xs, z'), z', @x) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 2 }→ splitqs#3(#ckgt(s2), @ls, @rs, z'') :|: s2 >= 0, s2 <= 3, @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: O(1) [0], size: O(1) [3] #ckgt: runtime: O(1) [0], size: O(1) [2] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ #eq(z - 1, z' - 1) :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ #and(#eq(@x_1, @y_1), #eq(@x_2, @y_2)) :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#equal(z, z') -{ 1 }→ #eq(z, z') :|: z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ s3 :|: s3 >= 0, s3 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
append(z, z') -{ 1 }→ append#1(z, z') :|: z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ 1 + @x + append(@xs, z') :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 1 }→ insert#1(z, z', z) :|: z' >= 0, z >= 0
insert#1(z, z', z'') -{ 1 }→ insert#2(z', @keyX, @valX, z'') :|: @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 1 }→ insert#3(@l1, z', @ls, z'', z1) :|: @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 2 }→ insert#4(#eq(@key1, z'), @key1, z'', z1, @vals1, z2) :|: @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + z2 + z') + insert(z3, z'') :|: z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 1 }→ quicksort#1(z) :|: z >= 0
quicksort#1(z) -{ 2 }→ quicksort#2(splitqs#1(@zs, @z), @z) :|: z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 3 }→ append(quicksort#1(@xs), 1 + z' + quicksort#1(@ys)) :|: z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(z') :|: @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 1 }→ split#1(z) :|: z >= 0
split#1(z) -{ 2 }→ insert(@x, split#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 2 }→ sortAll(split#1(z)) :|: z >= 0
splitqs(z, z') -{ 1 }→ splitqs#1(z', z) :|: z' >= 0, z >= 0
splitqs#1(z, z') -{ 2 }→ splitqs#2(splitqs#1(@xs, z'), z', @x) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 2 }→ splitqs#3(s5, @ls, @rs, z'') :|: s5 >= 0, s5 <= 2, s2 >= 0, s2 <= 3, @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: O(1) [0], size: O(1) [3] #ckgt: runtime: O(1) [0], size: O(1) [2] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ #eq(z - 1, z' - 1) :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ #and(#eq(@x_1, @y_1), #eq(@x_2, @y_2)) :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#equal(z, z') -{ 1 }→ #eq(z, z') :|: z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ s3 :|: s3 >= 0, s3 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
append(z, z') -{ 1 }→ append#1(z, z') :|: z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ 1 + @x + append(@xs, z') :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 1 }→ insert#1(z, z', z) :|: z' >= 0, z >= 0
insert#1(z, z', z'') -{ 1 }→ insert#2(z', @keyX, @valX, z'') :|: @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 1 }→ insert#3(@l1, z', @ls, z'', z1) :|: @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 2 }→ insert#4(#eq(@key1, z'), @key1, z'', z1, @vals1, z2) :|: @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + z2 + z') + insert(z3, z'') :|: z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 1 }→ quicksort#1(z) :|: z >= 0
quicksort#1(z) -{ 2 }→ quicksort#2(splitqs#1(@zs, @z), @z) :|: z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 3 }→ append(quicksort#1(@xs), 1 + z' + quicksort#1(@ys)) :|: z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(z') :|: @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 1 }→ split#1(z) :|: z >= 0
split#1(z) -{ 2 }→ insert(@x, split#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 2 }→ sortAll(split#1(z)) :|: z >= 0
splitqs(z, z') -{ 1 }→ splitqs#1(z', z) :|: z' >= 0, z >= 0
splitqs#1(z, z') -{ 2 }→ splitqs#2(splitqs#1(@xs, z'), z', @x) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 2 }→ splitqs#3(s5, @ls, @rs, z'') :|: s5 >= 0, s5 <= 2, s2 >= 0, s2 <= 3, @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: O(1) [0], size: O(1) [3] #ckgt: runtime: O(1) [0], size: O(1) [2] splitqs#3: runtime: ?, size: O(n1) [2 + z' + z'' + z1] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ #eq(z - 1, z' - 1) :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ #and(#eq(@x_1, @y_1), #eq(@x_2, @y_2)) :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#equal(z, z') -{ 1 }→ #eq(z, z') :|: z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ s3 :|: s3 >= 0, s3 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
append(z, z') -{ 1 }→ append#1(z, z') :|: z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ 1 + @x + append(@xs, z') :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 1 }→ insert#1(z, z', z) :|: z' >= 0, z >= 0
insert#1(z, z', z'') -{ 1 }→ insert#2(z', @keyX, @valX, z'') :|: @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 1 }→ insert#3(@l1, z', @ls, z'', z1) :|: @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 2 }→ insert#4(#eq(@key1, z'), @key1, z'', z1, @vals1, z2) :|: @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + z2 + z') + insert(z3, z'') :|: z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 1 }→ quicksort#1(z) :|: z >= 0
quicksort#1(z) -{ 2 }→ quicksort#2(splitqs#1(@zs, @z), @z) :|: z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 3 }→ append(quicksort#1(@xs), 1 + z' + quicksort#1(@ys)) :|: z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(z') :|: @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 1 }→ split#1(z) :|: z >= 0
split#1(z) -{ 2 }→ insert(@x, split#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 2 }→ sortAll(split#1(z)) :|: z >= 0
splitqs(z, z') -{ 1 }→ splitqs#1(z', z) :|: z' >= 0, z >= 0
splitqs#1(z, z') -{ 2 }→ splitqs#2(splitqs#1(@xs, z'), z', @x) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 2 }→ splitqs#3(s5, @ls, @rs, z'') :|: s5 >= 0, s5 <= 2, s2 >= 0, s2 <= 3, @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: O(1) [0], size: O(1) [3] #ckgt: runtime: O(1) [0], size: O(1) [2] splitqs#3: runtime: O(1) [1], size: O(n1) [2 + z' + z'' + z1] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ #eq(z - 1, z' - 1) :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ #and(#eq(@x_1, @y_1), #eq(@x_2, @y_2)) :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#equal(z, z') -{ 1 }→ #eq(z, z') :|: z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ s3 :|: s3 >= 0, s3 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
append(z, z') -{ 1 }→ append#1(z, z') :|: z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ 1 + @x + append(@xs, z') :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 1 }→ insert#1(z, z', z) :|: z' >= 0, z >= 0
insert#1(z, z', z'') -{ 1 }→ insert#2(z', @keyX, @valX, z'') :|: @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 1 }→ insert#3(@l1, z', @ls, z'', z1) :|: @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 2 }→ insert#4(#eq(@key1, z'), @key1, z'', z1, @vals1, z2) :|: @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + z2 + z') + insert(z3, z'') :|: z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 1 }→ quicksort#1(z) :|: z >= 0
quicksort#1(z) -{ 2 }→ quicksort#2(splitqs#1(@zs, @z), @z) :|: z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 3 }→ append(quicksort#1(@xs), 1 + z' + quicksort#1(@ys)) :|: z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(z') :|: @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 1 }→ split#1(z) :|: z >= 0
split#1(z) -{ 2 }→ insert(@x, split#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 2 }→ sortAll(split#1(z)) :|: z >= 0
splitqs(z, z') -{ 1 }→ splitqs#1(z', z) :|: z' >= 0, z >= 0
splitqs#1(z, z') -{ 2 }→ splitqs#2(splitqs#1(@xs, z'), z', @x) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 3 }→ s6 :|: s6 >= 0, s6 <= 1 * @ls + 1 * @rs + 1 * z'' + 2, s5 >= 0, s5 <= 2, s2 >= 0, s2 <= 3, @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: O(1) [0], size: O(1) [3] #ckgt: runtime: O(1) [0], size: O(1) [2] splitqs#3: runtime: O(1) [1], size: O(n1) [2 + z' + z'' + z1] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ #eq(z - 1, z' - 1) :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ #and(#eq(@x_1, @y_1), #eq(@x_2, @y_2)) :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#equal(z, z') -{ 1 }→ #eq(z, z') :|: z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ s3 :|: s3 >= 0, s3 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
append(z, z') -{ 1 }→ append#1(z, z') :|: z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ 1 + @x + append(@xs, z') :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 1 }→ insert#1(z, z', z) :|: z' >= 0, z >= 0
insert#1(z, z', z'') -{ 1 }→ insert#2(z', @keyX, @valX, z'') :|: @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 1 }→ insert#3(@l1, z', @ls, z'', z1) :|: @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 2 }→ insert#4(#eq(@key1, z'), @key1, z'', z1, @vals1, z2) :|: @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + z2 + z') + insert(z3, z'') :|: z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 1 }→ quicksort#1(z) :|: z >= 0
quicksort#1(z) -{ 2 }→ quicksort#2(splitqs#1(@zs, @z), @z) :|: z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 3 }→ append(quicksort#1(@xs), 1 + z' + quicksort#1(@ys)) :|: z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(z') :|: @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 1 }→ split#1(z) :|: z >= 0
split#1(z) -{ 2 }→ insert(@x, split#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 2 }→ sortAll(split#1(z)) :|: z >= 0
splitqs(z, z') -{ 1 }→ splitqs#1(z', z) :|: z' >= 0, z >= 0
splitqs#1(z, z') -{ 2 }→ splitqs#2(splitqs#1(@xs, z'), z', @x) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 3 }→ s6 :|: s6 >= 0, s6 <= 1 * @ls + 1 * @rs + 1 * z'' + 2, s5 >= 0, s5 <= 2, s2 >= 0, s2 <= 3, @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: O(1) [0], size: O(1) [3] #ckgt: runtime: O(1) [0], size: O(1) [2] splitqs#3: runtime: O(1) [1], size: O(n1) [2 + z' + z'' + z1] append#1: runtime: ?, size: O(n1) [z + z'] append: runtime: ?, size: O(n1) [z + z'] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ #eq(z - 1, z' - 1) :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ #and(#eq(@x_1, @y_1), #eq(@x_2, @y_2)) :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#equal(z, z') -{ 1 }→ #eq(z, z') :|: z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ s3 :|: s3 >= 0, s3 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
append(z, z') -{ 1 }→ append#1(z, z') :|: z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ 1 + @x + append(@xs, z') :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 1 }→ insert#1(z, z', z) :|: z' >= 0, z >= 0
insert#1(z, z', z'') -{ 1 }→ insert#2(z', @keyX, @valX, z'') :|: @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 1 }→ insert#3(@l1, z', @ls, z'', z1) :|: @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 2 }→ insert#4(#eq(@key1, z'), @key1, z'', z1, @vals1, z2) :|: @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + z2 + z') + insert(z3, z'') :|: z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 1 }→ quicksort#1(z) :|: z >= 0
quicksort#1(z) -{ 2 }→ quicksort#2(splitqs#1(@zs, @z), @z) :|: z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 3 }→ append(quicksort#1(@xs), 1 + z' + quicksort#1(@ys)) :|: z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(z') :|: @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 1 }→ split#1(z) :|: z >= 0
split#1(z) -{ 2 }→ insert(@x, split#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 2 }→ sortAll(split#1(z)) :|: z >= 0
splitqs(z, z') -{ 1 }→ splitqs#1(z', z) :|: z' >= 0, z >= 0
splitqs#1(z, z') -{ 2 }→ splitqs#2(splitqs#1(@xs, z'), z', @x) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 3 }→ s6 :|: s6 >= 0, s6 <= 1 * @ls + 1 * @rs + 1 * z'' + 2, s5 >= 0, s5 <= 2, s2 >= 0, s2 <= 3, @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: O(1) [0], size: O(1) [3] #ckgt: runtime: O(1) [0], size: O(1) [2] splitqs#3: runtime: O(1) [1], size: O(n1) [2 + z' + z'' + z1] append#1: runtime: O(n1) [1 + 2·z], size: O(n1) [z + z'] append: runtime: O(n1) [2 + 2·z], size: O(n1) [z + z'] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ #eq(z - 1, z' - 1) :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ #and(#eq(@x_1, @y_1), #eq(@x_2, @y_2)) :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#equal(z, z') -{ 1 }→ #eq(z, z') :|: z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ s3 :|: s3 >= 0, s3 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
append(z, z') -{ 2 + 2·z }→ s7 :|: s7 >= 0, s7 <= 1 * z + 1 * z', z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 3 + 2·@xs }→ 1 + @x + s8 :|: s8 >= 0, s8 <= 1 * @xs + 1 * z', @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 1 }→ insert#1(z, z', z) :|: z' >= 0, z >= 0
insert#1(z, z', z'') -{ 1 }→ insert#2(z', @keyX, @valX, z'') :|: @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 1 }→ insert#3(@l1, z', @ls, z'', z1) :|: @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 2 }→ insert#4(#eq(@key1, z'), @key1, z'', z1, @vals1, z2) :|: @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + z2 + z') + insert(z3, z'') :|: z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 1 }→ quicksort#1(z) :|: z >= 0
quicksort#1(z) -{ 2 }→ quicksort#2(splitqs#1(@zs, @z), @z) :|: z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 3 }→ append(quicksort#1(@xs), 1 + z' + quicksort#1(@ys)) :|: z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(z') :|: @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 1 }→ split#1(z) :|: z >= 0
split#1(z) -{ 2 }→ insert(@x, split#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 2 }→ sortAll(split#1(z)) :|: z >= 0
splitqs(z, z') -{ 1 }→ splitqs#1(z', z) :|: z' >= 0, z >= 0
splitqs#1(z, z') -{ 2 }→ splitqs#2(splitqs#1(@xs, z'), z', @x) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 3 }→ s6 :|: s6 >= 0, s6 <= 1 * @ls + 1 * @rs + 1 * z'' + 2, s5 >= 0, s5 <= 2, s2 >= 0, s2 <= 3, @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: O(1) [0], size: O(1) [3] #ckgt: runtime: O(1) [0], size: O(1) [2] splitqs#3: runtime: O(1) [1], size: O(n1) [2 + z' + z'' + z1] append#1: runtime: O(n1) [1 + 2·z], size: O(n1) [z + z'] append: runtime: O(n1) [2 + 2·z], size: O(n1) [z + z'] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ #eq(z - 1, z' - 1) :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ #and(#eq(@x_1, @y_1), #eq(@x_2, @y_2)) :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#equal(z, z') -{ 1 }→ #eq(z, z') :|: z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ s3 :|: s3 >= 0, s3 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
append(z, z') -{ 2 + 2·z }→ s7 :|: s7 >= 0, s7 <= 1 * z + 1 * z', z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 3 + 2·@xs }→ 1 + @x + s8 :|: s8 >= 0, s8 <= 1 * @xs + 1 * z', @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 1 }→ insert#1(z, z', z) :|: z' >= 0, z >= 0
insert#1(z, z', z'') -{ 1 }→ insert#2(z', @keyX, @valX, z'') :|: @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 1 }→ insert#3(@l1, z', @ls, z'', z1) :|: @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 2 }→ insert#4(#eq(@key1, z'), @key1, z'', z1, @vals1, z2) :|: @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + z2 + z') + insert(z3, z'') :|: z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 1 }→ quicksort#1(z) :|: z >= 0
quicksort#1(z) -{ 2 }→ quicksort#2(splitqs#1(@zs, @z), @z) :|: z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 3 }→ append(quicksort#1(@xs), 1 + z' + quicksort#1(@ys)) :|: z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(z') :|: @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 1 }→ split#1(z) :|: z >= 0
split#1(z) -{ 2 }→ insert(@x, split#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 2 }→ sortAll(split#1(z)) :|: z >= 0
splitqs(z, z') -{ 1 }→ splitqs#1(z', z) :|: z' >= 0, z >= 0
splitqs#1(z, z') -{ 2 }→ splitqs#2(splitqs#1(@xs, z'), z', @x) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 3 }→ s6 :|: s6 >= 0, s6 <= 1 * @ls + 1 * @rs + 1 * z'' + 2, s5 >= 0, s5 <= 2, s2 >= 0, s2 <= 3, @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: O(1) [0], size: O(1) [3] #ckgt: runtime: O(1) [0], size: O(1) [2] splitqs#3: runtime: O(1) [1], size: O(n1) [2 + z' + z'' + z1] append#1: runtime: O(n1) [1 + 2·z], size: O(n1) [z + z'] append: runtime: O(n1) [2 + 2·z], size: O(n1) [z + z'] #eq: runtime: ?, size: O(1) [2] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ #eq(z - 1, z' - 1) :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ #and(#eq(@x_1, @y_1), #eq(@x_2, @y_2)) :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#equal(z, z') -{ 1 }→ #eq(z, z') :|: z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ s3 :|: s3 >= 0, s3 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
append(z, z') -{ 2 + 2·z }→ s7 :|: s7 >= 0, s7 <= 1 * z + 1 * z', z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 3 + 2·@xs }→ 1 + @x + s8 :|: s8 >= 0, s8 <= 1 * @xs + 1 * z', @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 1 }→ insert#1(z, z', z) :|: z' >= 0, z >= 0
insert#1(z, z', z'') -{ 1 }→ insert#2(z', @keyX, @valX, z'') :|: @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 1 }→ insert#3(@l1, z', @ls, z'', z1) :|: @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 2 }→ insert#4(#eq(@key1, z'), @key1, z'', z1, @vals1, z2) :|: @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + z2 + z') + insert(z3, z'') :|: z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 1 }→ quicksort#1(z) :|: z >= 0
quicksort#1(z) -{ 2 }→ quicksort#2(splitqs#1(@zs, @z), @z) :|: z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 3 }→ append(quicksort#1(@xs), 1 + z' + quicksort#1(@ys)) :|: z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(z') :|: @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 1 }→ split#1(z) :|: z >= 0
split#1(z) -{ 2 }→ insert(@x, split#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 2 }→ sortAll(split#1(z)) :|: z >= 0
splitqs(z, z') -{ 1 }→ splitqs#1(z', z) :|: z' >= 0, z >= 0
splitqs#1(z, z') -{ 2 }→ splitqs#2(splitqs#1(@xs, z'), z', @x) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 3 }→ s6 :|: s6 >= 0, s6 <= 1 * @ls + 1 * @rs + 1 * z'' + 2, s5 >= 0, s5 <= 2, s2 >= 0, s2 <= 3, @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: O(1) [0], size: O(1) [3] #ckgt: runtime: O(1) [0], size: O(1) [2] splitqs#3: runtime: O(1) [1], size: O(n1) [2 + z' + z'' + z1] append#1: runtime: O(n1) [1 + 2·z], size: O(n1) [z + z'] append: runtime: O(n1) [2 + 2·z], size: O(n1) [z + z'] #eq: runtime: O(1) [0], size: O(1) [2] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ s11 :|: s11 >= 0, s11 <= 2, z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ s14 :|: s12 >= 0, s12 <= 2, s13 >= 0, s13 <= 2, s14 >= 0, s14 <= 2, @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#equal(z, z') -{ 1 }→ s9 :|: s9 >= 0, s9 <= 2, z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ s3 :|: s3 >= 0, s3 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
append(z, z') -{ 2 + 2·z }→ s7 :|: s7 >= 0, s7 <= 1 * z + 1 * z', z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 3 + 2·@xs }→ 1 + @x + s8 :|: s8 >= 0, s8 <= 1 * @xs + 1 * z', @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 1 }→ insert#1(z, z', z) :|: z' >= 0, z >= 0
insert#1(z, z', z'') -{ 1 }→ insert#2(z', @keyX, @valX, z'') :|: @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 1 }→ insert#3(@l1, z', @ls, z'', z1) :|: @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 2 }→ insert#4(s10, @key1, z'', z1, @vals1, z2) :|: s10 >= 0, s10 <= 2, @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + z2 + z') + insert(z3, z'') :|: z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 1 }→ quicksort#1(z) :|: z >= 0
quicksort#1(z) -{ 2 }→ quicksort#2(splitqs#1(@zs, @z), @z) :|: z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 3 }→ append(quicksort#1(@xs), 1 + z' + quicksort#1(@ys)) :|: z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(z') :|: @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 1 }→ split#1(z) :|: z >= 0
split#1(z) -{ 2 }→ insert(@x, split#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 2 }→ sortAll(split#1(z)) :|: z >= 0
splitqs(z, z') -{ 1 }→ splitqs#1(z', z) :|: z' >= 0, z >= 0
splitqs#1(z, z') -{ 2 }→ splitqs#2(splitqs#1(@xs, z'), z', @x) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 3 }→ s6 :|: s6 >= 0, s6 <= 1 * @ls + 1 * @rs + 1 * z'' + 2, s5 >= 0, s5 <= 2, s2 >= 0, s2 <= 3, @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: O(1) [0], size: O(1) [3] #ckgt: runtime: O(1) [0], size: O(1) [2] splitqs#3: runtime: O(1) [1], size: O(n1) [2 + z' + z'' + z1] append#1: runtime: O(n1) [1 + 2·z], size: O(n1) [z + z'] append: runtime: O(n1) [2 + 2·z], size: O(n1) [z + z'] #eq: runtime: O(1) [0], size: O(1) [2] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ s11 :|: s11 >= 0, s11 <= 2, z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ s14 :|: s12 >= 0, s12 <= 2, s13 >= 0, s13 <= 2, s14 >= 0, s14 <= 2, @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#equal(z, z') -{ 1 }→ s9 :|: s9 >= 0, s9 <= 2, z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ s3 :|: s3 >= 0, s3 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
append(z, z') -{ 2 + 2·z }→ s7 :|: s7 >= 0, s7 <= 1 * z + 1 * z', z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 3 + 2·@xs }→ 1 + @x + s8 :|: s8 >= 0, s8 <= 1 * @xs + 1 * z', @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 1 }→ insert#1(z, z', z) :|: z' >= 0, z >= 0
insert#1(z, z', z'') -{ 1 }→ insert#2(z', @keyX, @valX, z'') :|: @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 1 }→ insert#3(@l1, z', @ls, z'', z1) :|: @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 2 }→ insert#4(s10, @key1, z'', z1, @vals1, z2) :|: s10 >= 0, s10 <= 2, @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + z2 + z') + insert(z3, z'') :|: z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 1 }→ quicksort#1(z) :|: z >= 0
quicksort#1(z) -{ 2 }→ quicksort#2(splitqs#1(@zs, @z), @z) :|: z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 3 }→ append(quicksort#1(@xs), 1 + z' + quicksort#1(@ys)) :|: z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(z') :|: @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 1 }→ split#1(z) :|: z >= 0
split#1(z) -{ 2 }→ insert(@x, split#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 2 }→ sortAll(split#1(z)) :|: z >= 0
splitqs(z, z') -{ 1 }→ splitqs#1(z', z) :|: z' >= 0, z >= 0
splitqs#1(z, z') -{ 2 }→ splitqs#2(splitqs#1(@xs, z'), z', @x) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 3 }→ s6 :|: s6 >= 0, s6 <= 1 * @ls + 1 * @rs + 1 * z'' + 2, s5 >= 0, s5 <= 2, s2 >= 0, s2 <= 3, @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: O(1) [0], size: O(1) [3] #ckgt: runtime: O(1) [0], size: O(1) [2] splitqs#3: runtime: O(1) [1], size: O(n1) [2 + z' + z'' + z1] append#1: runtime: O(n1) [1 + 2·z], size: O(n1) [z + z'] append: runtime: O(n1) [2 + 2·z], size: O(n1) [z + z'] #eq: runtime: O(1) [0], size: O(1) [2] splitqs#2: runtime: ?, size: O(n1) [1 + z + z''] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ s11 :|: s11 >= 0, s11 <= 2, z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ s14 :|: s12 >= 0, s12 <= 2, s13 >= 0, s13 <= 2, s14 >= 0, s14 <= 2, @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#equal(z, z') -{ 1 }→ s9 :|: s9 >= 0, s9 <= 2, z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ s3 :|: s3 >= 0, s3 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
append(z, z') -{ 2 + 2·z }→ s7 :|: s7 >= 0, s7 <= 1 * z + 1 * z', z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 3 + 2·@xs }→ 1 + @x + s8 :|: s8 >= 0, s8 <= 1 * @xs + 1 * z', @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 1 }→ insert#1(z, z', z) :|: z' >= 0, z >= 0
insert#1(z, z', z'') -{ 1 }→ insert#2(z', @keyX, @valX, z'') :|: @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 1 }→ insert#3(@l1, z', @ls, z'', z1) :|: @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 2 }→ insert#4(s10, @key1, z'', z1, @vals1, z2) :|: s10 >= 0, s10 <= 2, @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + z2 + z') + insert(z3, z'') :|: z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 1 }→ quicksort#1(z) :|: z >= 0
quicksort#1(z) -{ 2 }→ quicksort#2(splitqs#1(@zs, @z), @z) :|: z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 3 }→ append(quicksort#1(@xs), 1 + z' + quicksort#1(@ys)) :|: z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(z') :|: @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 1 }→ split#1(z) :|: z >= 0
split#1(z) -{ 2 }→ insert(@x, split#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 2 }→ sortAll(split#1(z)) :|: z >= 0
splitqs(z, z') -{ 1 }→ splitqs#1(z', z) :|: z' >= 0, z >= 0
splitqs#1(z, z') -{ 2 }→ splitqs#2(splitqs#1(@xs, z'), z', @x) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 3 }→ s6 :|: s6 >= 0, s6 <= 1 * @ls + 1 * @rs + 1 * z'' + 2, s5 >= 0, s5 <= 2, s2 >= 0, s2 <= 3, @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: O(1) [0], size: O(1) [3] #ckgt: runtime: O(1) [0], size: O(1) [2] splitqs#3: runtime: O(1) [1], size: O(n1) [2 + z' + z'' + z1] append#1: runtime: O(n1) [1 + 2·z], size: O(n1) [z + z'] append: runtime: O(n1) [2 + 2·z], size: O(n1) [z + z'] #eq: runtime: O(1) [0], size: O(1) [2] splitqs#2: runtime: O(1) [3], size: O(n1) [1 + z + z''] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ s11 :|: s11 >= 0, s11 <= 2, z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ s14 :|: s12 >= 0, s12 <= 2, s13 >= 0, s13 <= 2, s14 >= 0, s14 <= 2, @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#equal(z, z') -{ 1 }→ s9 :|: s9 >= 0, s9 <= 2, z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ s3 :|: s3 >= 0, s3 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
append(z, z') -{ 2 + 2·z }→ s7 :|: s7 >= 0, s7 <= 1 * z + 1 * z', z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 3 + 2·@xs }→ 1 + @x + s8 :|: s8 >= 0, s8 <= 1 * @xs + 1 * z', @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 1 }→ insert#1(z, z', z) :|: z' >= 0, z >= 0
insert#1(z, z', z'') -{ 1 }→ insert#2(z', @keyX, @valX, z'') :|: @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 1 }→ insert#3(@l1, z', @ls, z'', z1) :|: @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 2 }→ insert#4(s10, @key1, z'', z1, @vals1, z2) :|: s10 >= 0, s10 <= 2, @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + z2 + z') + insert(z3, z'') :|: z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 1 }→ quicksort#1(z) :|: z >= 0
quicksort#1(z) -{ 2 }→ quicksort#2(splitqs#1(@zs, @z), @z) :|: z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 3 }→ append(quicksort#1(@xs), 1 + z' + quicksort#1(@ys)) :|: z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(z') :|: @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 1 }→ split#1(z) :|: z >= 0
split#1(z) -{ 2 }→ insert(@x, split#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 2 }→ sortAll(split#1(z)) :|: z >= 0
splitqs(z, z') -{ 1 }→ splitqs#1(z', z) :|: z' >= 0, z >= 0
splitqs#1(z, z') -{ 2 }→ splitqs#2(splitqs#1(@xs, z'), z', @x) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 3 }→ s6 :|: s6 >= 0, s6 <= 1 * @ls + 1 * @rs + 1 * z'' + 2, s5 >= 0, s5 <= 2, s2 >= 0, s2 <= 3, @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: O(1) [0], size: O(1) [3] #ckgt: runtime: O(1) [0], size: O(1) [2] splitqs#3: runtime: O(1) [1], size: O(n1) [2 + z' + z'' + z1] append#1: runtime: O(n1) [1 + 2·z], size: O(n1) [z + z'] append: runtime: O(n1) [2 + 2·z], size: O(n1) [z + z'] #eq: runtime: O(1) [0], size: O(1) [2] splitqs#2: runtime: O(1) [3], size: O(n1) [1 + z + z''] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ s11 :|: s11 >= 0, s11 <= 2, z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ s14 :|: s12 >= 0, s12 <= 2, s13 >= 0, s13 <= 2, s14 >= 0, s14 <= 2, @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#equal(z, z') -{ 1 }→ s9 :|: s9 >= 0, s9 <= 2, z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ s3 :|: s3 >= 0, s3 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
append(z, z') -{ 2 + 2·z }→ s7 :|: s7 >= 0, s7 <= 1 * z + 1 * z', z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 3 + 2·@xs }→ 1 + @x + s8 :|: s8 >= 0, s8 <= 1 * @xs + 1 * z', @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 1 }→ insert#1(z, z', z) :|: z' >= 0, z >= 0
insert#1(z, z', z'') -{ 1 }→ insert#2(z', @keyX, @valX, z'') :|: @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 1 }→ insert#3(@l1, z', @ls, z'', z1) :|: @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 2 }→ insert#4(s10, @key1, z'', z1, @vals1, z2) :|: s10 >= 0, s10 <= 2, @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + z2 + z') + insert(z3, z'') :|: z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 1 }→ quicksort#1(z) :|: z >= 0
quicksort#1(z) -{ 2 }→ quicksort#2(splitqs#1(@zs, @z), @z) :|: z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 3 }→ append(quicksort#1(@xs), 1 + z' + quicksort#1(@ys)) :|: z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(z') :|: @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 1 }→ split#1(z) :|: z >= 0
split#1(z) -{ 2 }→ insert(@x, split#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 2 }→ sortAll(split#1(z)) :|: z >= 0
splitqs(z, z') -{ 1 }→ splitqs#1(z', z) :|: z' >= 0, z >= 0
splitqs#1(z, z') -{ 2 }→ splitqs#2(splitqs#1(@xs, z'), z', @x) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 3 }→ s6 :|: s6 >= 0, s6 <= 1 * @ls + 1 * @rs + 1 * z'' + 2, s5 >= 0, s5 <= 2, s2 >= 0, s2 <= 3, @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: O(1) [0], size: O(1) [3] #ckgt: runtime: O(1) [0], size: O(1) [2] splitqs#3: runtime: O(1) [1], size: O(n1) [2 + z' + z'' + z1] append#1: runtime: O(n1) [1 + 2·z], size: O(n1) [z + z'] append: runtime: O(n1) [2 + 2·z], size: O(n1) [z + z'] #eq: runtime: O(1) [0], size: O(1) [2] splitqs#2: runtime: O(1) [3], size: O(n1) [1 + z + z''] #greater: runtime: ?, size: O(1) [2] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ s11 :|: s11 >= 0, s11 <= 2, z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ s14 :|: s12 >= 0, s12 <= 2, s13 >= 0, s13 <= 2, s14 >= 0, s14 <= 2, @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#equal(z, z') -{ 1 }→ s9 :|: s9 >= 0, s9 <= 2, z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ s3 :|: s3 >= 0, s3 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
append(z, z') -{ 2 + 2·z }→ s7 :|: s7 >= 0, s7 <= 1 * z + 1 * z', z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 3 + 2·@xs }→ 1 + @x + s8 :|: s8 >= 0, s8 <= 1 * @xs + 1 * z', @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 1 }→ insert#1(z, z', z) :|: z' >= 0, z >= 0
insert#1(z, z', z'') -{ 1 }→ insert#2(z', @keyX, @valX, z'') :|: @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 1 }→ insert#3(@l1, z', @ls, z'', z1) :|: @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 2 }→ insert#4(s10, @key1, z'', z1, @vals1, z2) :|: s10 >= 0, s10 <= 2, @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + z2 + z') + insert(z3, z'') :|: z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 1 }→ quicksort#1(z) :|: z >= 0
quicksort#1(z) -{ 2 }→ quicksort#2(splitqs#1(@zs, @z), @z) :|: z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 3 }→ append(quicksort#1(@xs), 1 + z' + quicksort#1(@ys)) :|: z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(z') :|: @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 1 }→ split#1(z) :|: z >= 0
split#1(z) -{ 2 }→ insert(@x, split#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 2 }→ sortAll(split#1(z)) :|: z >= 0
splitqs(z, z') -{ 1 }→ splitqs#1(z', z) :|: z' >= 0, z >= 0
splitqs#1(z, z') -{ 2 }→ splitqs#2(splitqs#1(@xs, z'), z', @x) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 3 }→ s6 :|: s6 >= 0, s6 <= 1 * @ls + 1 * @rs + 1 * z'' + 2, s5 >= 0, s5 <= 2, s2 >= 0, s2 <= 3, @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: O(1) [0], size: O(1) [3] #ckgt: runtime: O(1) [0], size: O(1) [2] splitqs#3: runtime: O(1) [1], size: O(n1) [2 + z' + z'' + z1] append#1: runtime: O(n1) [1 + 2·z], size: O(n1) [z + z'] append: runtime: O(n1) [2 + 2·z], size: O(n1) [z + z'] #eq: runtime: O(1) [0], size: O(1) [2] splitqs#2: runtime: O(1) [3], size: O(n1) [1 + z + z''] #greater: runtime: O(1) [1], size: O(1) [2] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ s11 :|: s11 >= 0, s11 <= 2, z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ s14 :|: s12 >= 0, s12 <= 2, s13 >= 0, s13 <= 2, s14 >= 0, s14 <= 2, @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#equal(z, z') -{ 1 }→ s9 :|: s9 >= 0, s9 <= 2, z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ s3 :|: s3 >= 0, s3 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
append(z, z') -{ 2 + 2·z }→ s7 :|: s7 >= 0, s7 <= 1 * z + 1 * z', z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 3 + 2·@xs }→ 1 + @x + s8 :|: s8 >= 0, s8 <= 1 * @xs + 1 * z', @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 1 }→ insert#1(z, z', z) :|: z' >= 0, z >= 0
insert#1(z, z', z'') -{ 1 }→ insert#2(z', @keyX, @valX, z'') :|: @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 1 }→ insert#3(@l1, z', @ls, z'', z1) :|: @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 2 }→ insert#4(s10, @key1, z'', z1, @vals1, z2) :|: s10 >= 0, s10 <= 2, @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + z2 + z') + insert(z3, z'') :|: z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 1 }→ quicksort#1(z) :|: z >= 0
quicksort#1(z) -{ 2 }→ quicksort#2(splitqs#1(@zs, @z), @z) :|: z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 3 }→ append(quicksort#1(@xs), 1 + z' + quicksort#1(@ys)) :|: z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(z') :|: @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 1 }→ split#1(z) :|: z >= 0
split#1(z) -{ 2 }→ insert(@x, split#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 2 }→ sortAll(split#1(z)) :|: z >= 0
splitqs(z, z') -{ 1 }→ splitqs#1(z', z) :|: z' >= 0, z >= 0
splitqs#1(z, z') -{ 2 }→ splitqs#2(splitqs#1(@xs, z'), z', @x) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 3 }→ s6 :|: s6 >= 0, s6 <= 1 * @ls + 1 * @rs + 1 * z'' + 2, s5 >= 0, s5 <= 2, s2 >= 0, s2 <= 3, @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: O(1) [0], size: O(1) [3] #ckgt: runtime: O(1) [0], size: O(1) [2] splitqs#3: runtime: O(1) [1], size: O(n1) [2 + z' + z'' + z1] append#1: runtime: O(n1) [1 + 2·z], size: O(n1) [z + z'] append: runtime: O(n1) [2 + 2·z], size: O(n1) [z + z'] #eq: runtime: O(1) [0], size: O(1) [2] splitqs#2: runtime: O(1) [3], size: O(n1) [1 + z + z''] #greater: runtime: O(1) [1], size: O(1) [2] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ s11 :|: s11 >= 0, s11 <= 2, z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ s14 :|: s12 >= 0, s12 <= 2, s13 >= 0, s13 <= 2, s14 >= 0, s14 <= 2, @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#equal(z, z') -{ 1 }→ s9 :|: s9 >= 0, s9 <= 2, z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ s3 :|: s3 >= 0, s3 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
append(z, z') -{ 2 + 2·z }→ s7 :|: s7 >= 0, s7 <= 1 * z + 1 * z', z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 3 + 2·@xs }→ 1 + @x + s8 :|: s8 >= 0, s8 <= 1 * @xs + 1 * z', @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 1 }→ insert#1(z, z', z) :|: z' >= 0, z >= 0
insert#1(z, z', z'') -{ 1 }→ insert#2(z', @keyX, @valX, z'') :|: @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 1 }→ insert#3(@l1, z', @ls, z'', z1) :|: @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 2 }→ insert#4(s10, @key1, z'', z1, @vals1, z2) :|: s10 >= 0, s10 <= 2, @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + z2 + z') + insert(z3, z'') :|: z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 1 }→ quicksort#1(z) :|: z >= 0
quicksort#1(z) -{ 2 }→ quicksort#2(splitqs#1(@zs, @z), @z) :|: z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 3 }→ append(quicksort#1(@xs), 1 + z' + quicksort#1(@ys)) :|: z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(z') :|: @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 1 }→ split#1(z) :|: z >= 0
split#1(z) -{ 2 }→ insert(@x, split#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 2 }→ sortAll(split#1(z)) :|: z >= 0
splitqs(z, z') -{ 1 }→ splitqs#1(z', z) :|: z' >= 0, z >= 0
splitqs#1(z, z') -{ 2 }→ splitqs#2(splitqs#1(@xs, z'), z', @x) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 3 }→ s6 :|: s6 >= 0, s6 <= 1 * @ls + 1 * @rs + 1 * z'' + 2, s5 >= 0, s5 <= 2, s2 >= 0, s2 <= 3, @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: O(1) [0], size: O(1) [3] #ckgt: runtime: O(1) [0], size: O(1) [2] splitqs#3: runtime: O(1) [1], size: O(n1) [2 + z' + z'' + z1] append#1: runtime: O(n1) [1 + 2·z], size: O(n1) [z + z'] append: runtime: O(n1) [2 + 2·z], size: O(n1) [z + z'] #eq: runtime: O(1) [0], size: O(1) [2] splitqs#2: runtime: O(1) [3], size: O(n1) [1 + z + z''] #greater: runtime: O(1) [1], size: O(1) [2] insert#4: runtime: ?, size: O(n1) [6 + z' + z'' + z1 + z2 + z3] insert#2: runtime: ?, size: O(n1) [5 + z + z' + z'' + z1] insert: runtime: ?, size: O(n1) [4 + 2·z + z'] insert#3: runtime: ?, size: O(n1) [5 + z + z'' + z1 + z2] insert#1: runtime: ?, size: O(n1) [4 + z + z' + z''] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ s11 :|: s11 >= 0, s11 <= 2, z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ s14 :|: s12 >= 0, s12 <= 2, s13 >= 0, s13 <= 2, s14 >= 0, s14 <= 2, @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#equal(z, z') -{ 1 }→ s9 :|: s9 >= 0, s9 <= 2, z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ s3 :|: s3 >= 0, s3 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
append(z, z') -{ 2 + 2·z }→ s7 :|: s7 >= 0, s7 <= 1 * z + 1 * z', z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 3 + 2·@xs }→ 1 + @x + s8 :|: s8 >= 0, s8 <= 1 * @xs + 1 * z', @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 1 }→ insert#1(z, z', z) :|: z' >= 0, z >= 0
insert#1(z, z', z'') -{ 1 }→ insert#2(z', @keyX, @valX, z'') :|: @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 1 }→ insert#3(@l1, z', @ls, z'', z1) :|: @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 2 }→ insert#4(s10, @key1, z'', z1, @vals1, z2) :|: s10 >= 0, s10 <= 2, @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + z2 + z') + insert(z3, z'') :|: z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 1 }→ quicksort#1(z) :|: z >= 0
quicksort#1(z) -{ 2 }→ quicksort#2(splitqs#1(@zs, @z), @z) :|: z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 3 }→ append(quicksort#1(@xs), 1 + z' + quicksort#1(@ys)) :|: z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(z') :|: @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 1 }→ split#1(z) :|: z >= 0
split#1(z) -{ 2 }→ insert(@x, split#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 2 }→ sortAll(split#1(z)) :|: z >= 0
splitqs(z, z') -{ 1 }→ splitqs#1(z', z) :|: z' >= 0, z >= 0
splitqs#1(z, z') -{ 2 }→ splitqs#2(splitqs#1(@xs, z'), z', @x) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 3 }→ s6 :|: s6 >= 0, s6 <= 1 * @ls + 1 * @rs + 1 * z'' + 2, s5 >= 0, s5 <= 2, s2 >= 0, s2 <= 3, @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: O(1) [0], size: O(1) [3] #ckgt: runtime: O(1) [0], size: O(1) [2] splitqs#3: runtime: O(1) [1], size: O(n1) [2 + z' + z'' + z1] append#1: runtime: O(n1) [1 + 2·z], size: O(n1) [z + z'] append: runtime: O(n1) [2 + 2·z], size: O(n1) [z + z'] #eq: runtime: O(1) [0], size: O(1) [2] splitqs#2: runtime: O(1) [3], size: O(n1) [1 + z + z''] #greater: runtime: O(1) [1], size: O(1) [2] insert#4: runtime: O(n1) [4 + 6·z''], size: O(n1) [6 + z' + z'' + z1 + z2 + z3] insert#2: runtime: O(n1) [7 + 6·z], size: O(n1) [5 + z + z' + z'' + z1] insert: runtime: O(n1) [9 + 6·z'], size: O(n1) [4 + 2·z + z'] insert#3: runtime: O(n1) [6 + 6·z''], size: O(n1) [5 + z + z'' + z1 + z2] insert#1: runtime: O(n1) [8 + 6·z'], size: O(n1) [4 + z + z' + z''] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ s11 :|: s11 >= 0, s11 <= 2, z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ s14 :|: s12 >= 0, s12 <= 2, s13 >= 0, s13 <= 2, s14 >= 0, s14 <= 2, @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#equal(z, z') -{ 1 }→ s9 :|: s9 >= 0, s9 <= 2, z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ s3 :|: s3 >= 0, s3 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
append(z, z') -{ 2 + 2·z }→ s7 :|: s7 >= 0, s7 <= 1 * z + 1 * z', z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 3 + 2·@xs }→ 1 + @x + s8 :|: s8 >= 0, s8 <= 1 * @xs + 1 * z', @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 9 + 6·z' }→ s15 :|: s15 >= 0, s15 <= 1 * z + 1 * z' + 1 * z + 4, z' >= 0, z >= 0
insert#1(z, z', z'') -{ 8 + 6·z' }→ s16 :|: s16 >= 0, s16 <= 1 * z' + 1 * @valX + 1 * z'' + 5 + 1 * @keyX, @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 7 + 6·@ls }→ s17 :|: s17 >= 0, s17 <= 1 * @l1 + 1 * @ls + 1 * z'' + 1 * z1 + 5, @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 6 + 6·z'' }→ s18 :|: s18 >= 0, s18 <= 1 * @key1 + 1 * z'' + 1 * @vals1 + 1 * z2 + 6 + 1 * z1, s10 >= 0, s10 <= 2, @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 10 + 6·z'' }→ 1 + (1 + z2 + z') + s19 :|: s19 >= 0, s19 <= 2 * z3 + 1 * z'' + 4, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 1 }→ quicksort#1(z) :|: z >= 0
quicksort#1(z) -{ 2 }→ quicksort#2(splitqs#1(@zs, @z), @z) :|: z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 3 }→ append(quicksort#1(@xs), 1 + z' + quicksort#1(@ys)) :|: z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(z') :|: @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 1 }→ split#1(z) :|: z >= 0
split#1(z) -{ 2 }→ insert(@x, split#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 2 }→ sortAll(split#1(z)) :|: z >= 0
splitqs(z, z') -{ 1 }→ splitqs#1(z', z) :|: z' >= 0, z >= 0
splitqs#1(z, z') -{ 2 }→ splitqs#2(splitqs#1(@xs, z'), z', @x) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 3 }→ s6 :|: s6 >= 0, s6 <= 1 * @ls + 1 * @rs + 1 * z'' + 2, s5 >= 0, s5 <= 2, s2 >= 0, s2 <= 3, @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: O(1) [0], size: O(1) [3] #ckgt: runtime: O(1) [0], size: O(1) [2] splitqs#3: runtime: O(1) [1], size: O(n1) [2 + z' + z'' + z1] append#1: runtime: O(n1) [1 + 2·z], size: O(n1) [z + z'] append: runtime: O(n1) [2 + 2·z], size: O(n1) [z + z'] #eq: runtime: O(1) [0], size: O(1) [2] splitqs#2: runtime: O(1) [3], size: O(n1) [1 + z + z''] #greater: runtime: O(1) [1], size: O(1) [2] insert#4: runtime: O(n1) [4 + 6·z''], size: O(n1) [6 + z' + z'' + z1 + z2 + z3] insert#2: runtime: O(n1) [7 + 6·z], size: O(n1) [5 + z + z' + z'' + z1] insert: runtime: O(n1) [9 + 6·z'], size: O(n1) [4 + 2·z + z'] insert#3: runtime: O(n1) [6 + 6·z''], size: O(n1) [5 + z + z'' + z1 + z2] insert#1: runtime: O(n1) [8 + 6·z'], size: O(n1) [4 + z + z' + z''] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ s11 :|: s11 >= 0, s11 <= 2, z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ s14 :|: s12 >= 0, s12 <= 2, s13 >= 0, s13 <= 2, s14 >= 0, s14 <= 2, @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#equal(z, z') -{ 1 }→ s9 :|: s9 >= 0, s9 <= 2, z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ s3 :|: s3 >= 0, s3 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
append(z, z') -{ 2 + 2·z }→ s7 :|: s7 >= 0, s7 <= 1 * z + 1 * z', z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 3 + 2·@xs }→ 1 + @x + s8 :|: s8 >= 0, s8 <= 1 * @xs + 1 * z', @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 9 + 6·z' }→ s15 :|: s15 >= 0, s15 <= 1 * z + 1 * z' + 1 * z + 4, z' >= 0, z >= 0
insert#1(z, z', z'') -{ 8 + 6·z' }→ s16 :|: s16 >= 0, s16 <= 1 * z' + 1 * @valX + 1 * z'' + 5 + 1 * @keyX, @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 7 + 6·@ls }→ s17 :|: s17 >= 0, s17 <= 1 * @l1 + 1 * @ls + 1 * z'' + 1 * z1 + 5, @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 6 + 6·z'' }→ s18 :|: s18 >= 0, s18 <= 1 * @key1 + 1 * z'' + 1 * @vals1 + 1 * z2 + 6 + 1 * z1, s10 >= 0, s10 <= 2, @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 10 + 6·z'' }→ 1 + (1 + z2 + z') + s19 :|: s19 >= 0, s19 <= 2 * z3 + 1 * z'' + 4, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 1 }→ quicksort#1(z) :|: z >= 0
quicksort#1(z) -{ 2 }→ quicksort#2(splitqs#1(@zs, @z), @z) :|: z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 3 }→ append(quicksort#1(@xs), 1 + z' + quicksort#1(@ys)) :|: z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(z') :|: @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 1 }→ split#1(z) :|: z >= 0
split#1(z) -{ 2 }→ insert(@x, split#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 2 }→ sortAll(split#1(z)) :|: z >= 0
splitqs(z, z') -{ 1 }→ splitqs#1(z', z) :|: z' >= 0, z >= 0
splitqs#1(z, z') -{ 2 }→ splitqs#2(splitqs#1(@xs, z'), z', @x) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 3 }→ s6 :|: s6 >= 0, s6 <= 1 * @ls + 1 * @rs + 1 * z'' + 2, s5 >= 0, s5 <= 2, s2 >= 0, s2 <= 3, @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: O(1) [0], size: O(1) [3] #ckgt: runtime: O(1) [0], size: O(1) [2] splitqs#3: runtime: O(1) [1], size: O(n1) [2 + z' + z'' + z1] append#1: runtime: O(n1) [1 + 2·z], size: O(n1) [z + z'] append: runtime: O(n1) [2 + 2·z], size: O(n1) [z + z'] #eq: runtime: O(1) [0], size: O(1) [2] splitqs#2: runtime: O(1) [3], size: O(n1) [1 + z + z''] #greater: runtime: O(1) [1], size: O(1) [2] insert#4: runtime: O(n1) [4 + 6·z''], size: O(n1) [6 + z' + z'' + z1 + z2 + z3] insert#2: runtime: O(n1) [7 + 6·z], size: O(n1) [5 + z + z' + z'' + z1] insert: runtime: O(n1) [9 + 6·z'], size: O(n1) [4 + 2·z + z'] insert#3: runtime: O(n1) [6 + 6·z''], size: O(n1) [5 + z + z'' + z1 + z2] insert#1: runtime: O(n1) [8 + 6·z'], size: O(n1) [4 + z + z' + z''] #equal: runtime: ?, size: O(1) [2] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ s11 :|: s11 >= 0, s11 <= 2, z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ s14 :|: s12 >= 0, s12 <= 2, s13 >= 0, s13 <= 2, s14 >= 0, s14 <= 2, @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#equal(z, z') -{ 1 }→ s9 :|: s9 >= 0, s9 <= 2, z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ s3 :|: s3 >= 0, s3 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
append(z, z') -{ 2 + 2·z }→ s7 :|: s7 >= 0, s7 <= 1 * z + 1 * z', z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 3 + 2·@xs }→ 1 + @x + s8 :|: s8 >= 0, s8 <= 1 * @xs + 1 * z', @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 9 + 6·z' }→ s15 :|: s15 >= 0, s15 <= 1 * z + 1 * z' + 1 * z + 4, z' >= 0, z >= 0
insert#1(z, z', z'') -{ 8 + 6·z' }→ s16 :|: s16 >= 0, s16 <= 1 * z' + 1 * @valX + 1 * z'' + 5 + 1 * @keyX, @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 7 + 6·@ls }→ s17 :|: s17 >= 0, s17 <= 1 * @l1 + 1 * @ls + 1 * z'' + 1 * z1 + 5, @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 6 + 6·z'' }→ s18 :|: s18 >= 0, s18 <= 1 * @key1 + 1 * z'' + 1 * @vals1 + 1 * z2 + 6 + 1 * z1, s10 >= 0, s10 <= 2, @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 10 + 6·z'' }→ 1 + (1 + z2 + z') + s19 :|: s19 >= 0, s19 <= 2 * z3 + 1 * z'' + 4, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 1 }→ quicksort#1(z) :|: z >= 0
quicksort#1(z) -{ 2 }→ quicksort#2(splitqs#1(@zs, @z), @z) :|: z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 3 }→ append(quicksort#1(@xs), 1 + z' + quicksort#1(@ys)) :|: z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(z') :|: @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 1 }→ split#1(z) :|: z >= 0
split#1(z) -{ 2 }→ insert(@x, split#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 2 }→ sortAll(split#1(z)) :|: z >= 0
splitqs(z, z') -{ 1 }→ splitqs#1(z', z) :|: z' >= 0, z >= 0
splitqs#1(z, z') -{ 2 }→ splitqs#2(splitqs#1(@xs, z'), z', @x) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 3 }→ s6 :|: s6 >= 0, s6 <= 1 * @ls + 1 * @rs + 1 * z'' + 2, s5 >= 0, s5 <= 2, s2 >= 0, s2 <= 3, @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: O(1) [0], size: O(1) [3] #ckgt: runtime: O(1) [0], size: O(1) [2] splitqs#3: runtime: O(1) [1], size: O(n1) [2 + z' + z'' + z1] append#1: runtime: O(n1) [1 + 2·z], size: O(n1) [z + z'] append: runtime: O(n1) [2 + 2·z], size: O(n1) [z + z'] #eq: runtime: O(1) [0], size: O(1) [2] splitqs#2: runtime: O(1) [3], size: O(n1) [1 + z + z''] #greater: runtime: O(1) [1], size: O(1) [2] insert#4: runtime: O(n1) [4 + 6·z''], size: O(n1) [6 + z' + z'' + z1 + z2 + z3] insert#2: runtime: O(n1) [7 + 6·z], size: O(n1) [5 + z + z' + z'' + z1] insert: runtime: O(n1) [9 + 6·z'], size: O(n1) [4 + 2·z + z'] insert#3: runtime: O(n1) [6 + 6·z''], size: O(n1) [5 + z + z'' + z1 + z2] insert#1: runtime: O(n1) [8 + 6·z'], size: O(n1) [4 + z + z' + z''] #equal: runtime: O(1) [1], size: O(1) [2] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ s11 :|: s11 >= 0, s11 <= 2, z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ s14 :|: s12 >= 0, s12 <= 2, s13 >= 0, s13 <= 2, s14 >= 0, s14 <= 2, @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#equal(z, z') -{ 1 }→ s9 :|: s9 >= 0, s9 <= 2, z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ s3 :|: s3 >= 0, s3 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
append(z, z') -{ 2 + 2·z }→ s7 :|: s7 >= 0, s7 <= 1 * z + 1 * z', z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 3 + 2·@xs }→ 1 + @x + s8 :|: s8 >= 0, s8 <= 1 * @xs + 1 * z', @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 9 + 6·z' }→ s15 :|: s15 >= 0, s15 <= 1 * z + 1 * z' + 1 * z + 4, z' >= 0, z >= 0
insert#1(z, z', z'') -{ 8 + 6·z' }→ s16 :|: s16 >= 0, s16 <= 1 * z' + 1 * @valX + 1 * z'' + 5 + 1 * @keyX, @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 7 + 6·@ls }→ s17 :|: s17 >= 0, s17 <= 1 * @l1 + 1 * @ls + 1 * z'' + 1 * z1 + 5, @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 6 + 6·z'' }→ s18 :|: s18 >= 0, s18 <= 1 * @key1 + 1 * z'' + 1 * @vals1 + 1 * z2 + 6 + 1 * z1, s10 >= 0, s10 <= 2, @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 10 + 6·z'' }→ 1 + (1 + z2 + z') + s19 :|: s19 >= 0, s19 <= 2 * z3 + 1 * z'' + 4, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 1 }→ quicksort#1(z) :|: z >= 0
quicksort#1(z) -{ 2 }→ quicksort#2(splitqs#1(@zs, @z), @z) :|: z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 3 }→ append(quicksort#1(@xs), 1 + z' + quicksort#1(@ys)) :|: z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(z') :|: @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 1 }→ split#1(z) :|: z >= 0
split#1(z) -{ 2 }→ insert(@x, split#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 2 }→ sortAll(split#1(z)) :|: z >= 0
splitqs(z, z') -{ 1 }→ splitqs#1(z', z) :|: z' >= 0, z >= 0
splitqs#1(z, z') -{ 2 }→ splitqs#2(splitqs#1(@xs, z'), z', @x) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 3 }→ s6 :|: s6 >= 0, s6 <= 1 * @ls + 1 * @rs + 1 * z'' + 2, s5 >= 0, s5 <= 2, s2 >= 0, s2 <= 3, @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: O(1) [0], size: O(1) [3] #ckgt: runtime: O(1) [0], size: O(1) [2] splitqs#3: runtime: O(1) [1], size: O(n1) [2 + z' + z'' + z1] append#1: runtime: O(n1) [1 + 2·z], size: O(n1) [z + z'] append: runtime: O(n1) [2 + 2·z], size: O(n1) [z + z'] #eq: runtime: O(1) [0], size: O(1) [2] splitqs#2: runtime: O(1) [3], size: O(n1) [1 + z + z''] #greater: runtime: O(1) [1], size: O(1) [2] insert#4: runtime: O(n1) [4 + 6·z''], size: O(n1) [6 + z' + z'' + z1 + z2 + z3] insert#2: runtime: O(n1) [7 + 6·z], size: O(n1) [5 + z + z' + z'' + z1] insert: runtime: O(n1) [9 + 6·z'], size: O(n1) [4 + 2·z + z'] insert#3: runtime: O(n1) [6 + 6·z''], size: O(n1) [5 + z + z'' + z1 + z2] insert#1: runtime: O(n1) [8 + 6·z'], size: O(n1) [4 + z + z' + z''] #equal: runtime: O(1) [1], size: O(1) [2] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ s11 :|: s11 >= 0, s11 <= 2, z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ s14 :|: s12 >= 0, s12 <= 2, s13 >= 0, s13 <= 2, s14 >= 0, s14 <= 2, @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#equal(z, z') -{ 1 }→ s9 :|: s9 >= 0, s9 <= 2, z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ s3 :|: s3 >= 0, s3 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
append(z, z') -{ 2 + 2·z }→ s7 :|: s7 >= 0, s7 <= 1 * z + 1 * z', z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 3 + 2·@xs }→ 1 + @x + s8 :|: s8 >= 0, s8 <= 1 * @xs + 1 * z', @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 9 + 6·z' }→ s15 :|: s15 >= 0, s15 <= 1 * z + 1 * z' + 1 * z + 4, z' >= 0, z >= 0
insert#1(z, z', z'') -{ 8 + 6·z' }→ s16 :|: s16 >= 0, s16 <= 1 * z' + 1 * @valX + 1 * z'' + 5 + 1 * @keyX, @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 7 + 6·@ls }→ s17 :|: s17 >= 0, s17 <= 1 * @l1 + 1 * @ls + 1 * z'' + 1 * z1 + 5, @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 6 + 6·z'' }→ s18 :|: s18 >= 0, s18 <= 1 * @key1 + 1 * z'' + 1 * @vals1 + 1 * z2 + 6 + 1 * z1, s10 >= 0, s10 <= 2, @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 10 + 6·z'' }→ 1 + (1 + z2 + z') + s19 :|: s19 >= 0, s19 <= 2 * z3 + 1 * z'' + 4, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 1 }→ quicksort#1(z) :|: z >= 0
quicksort#1(z) -{ 2 }→ quicksort#2(splitqs#1(@zs, @z), @z) :|: z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 3 }→ append(quicksort#1(@xs), 1 + z' + quicksort#1(@ys)) :|: z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(z') :|: @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 1 }→ split#1(z) :|: z >= 0
split#1(z) -{ 2 }→ insert(@x, split#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 2 }→ sortAll(split#1(z)) :|: z >= 0
splitqs(z, z') -{ 1 }→ splitqs#1(z', z) :|: z' >= 0, z >= 0
splitqs#1(z, z') -{ 2 }→ splitqs#2(splitqs#1(@xs, z'), z', @x) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 3 }→ s6 :|: s6 >= 0, s6 <= 1 * @ls + 1 * @rs + 1 * z'' + 2, s5 >= 0, s5 <= 2, s2 >= 0, s2 <= 3, @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: O(1) [0], size: O(1) [3] #ckgt: runtime: O(1) [0], size: O(1) [2] splitqs#3: runtime: O(1) [1], size: O(n1) [2 + z' + z'' + z1] append#1: runtime: O(n1) [1 + 2·z], size: O(n1) [z + z'] append: runtime: O(n1) [2 + 2·z], size: O(n1) [z + z'] #eq: runtime: O(1) [0], size: O(1) [2] splitqs#2: runtime: O(1) [3], size: O(n1) [1 + z + z''] #greater: runtime: O(1) [1], size: O(1) [2] insert#4: runtime: O(n1) [4 + 6·z''], size: O(n1) [6 + z' + z'' + z1 + z2 + z3] insert#2: runtime: O(n1) [7 + 6·z], size: O(n1) [5 + z + z' + z'' + z1] insert: runtime: O(n1) [9 + 6·z'], size: O(n1) [4 + 2·z + z'] insert#3: runtime: O(n1) [6 + 6·z''], size: O(n1) [5 + z + z'' + z1 + z2] insert#1: runtime: O(n1) [8 + 6·z'], size: O(n1) [4 + z + z' + z''] #equal: runtime: O(1) [1], size: O(1) [2] splitqs#1: runtime: ?, size: O(n1) [2 + z] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ s11 :|: s11 >= 0, s11 <= 2, z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ s14 :|: s12 >= 0, s12 <= 2, s13 >= 0, s13 <= 2, s14 >= 0, s14 <= 2, @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#equal(z, z') -{ 1 }→ s9 :|: s9 >= 0, s9 <= 2, z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ s3 :|: s3 >= 0, s3 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
append(z, z') -{ 2 + 2·z }→ s7 :|: s7 >= 0, s7 <= 1 * z + 1 * z', z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 3 + 2·@xs }→ 1 + @x + s8 :|: s8 >= 0, s8 <= 1 * @xs + 1 * z', @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 9 + 6·z' }→ s15 :|: s15 >= 0, s15 <= 1 * z + 1 * z' + 1 * z + 4, z' >= 0, z >= 0
insert#1(z, z', z'') -{ 8 + 6·z' }→ s16 :|: s16 >= 0, s16 <= 1 * z' + 1 * @valX + 1 * z'' + 5 + 1 * @keyX, @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 7 + 6·@ls }→ s17 :|: s17 >= 0, s17 <= 1 * @l1 + 1 * @ls + 1 * z'' + 1 * z1 + 5, @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 6 + 6·z'' }→ s18 :|: s18 >= 0, s18 <= 1 * @key1 + 1 * z'' + 1 * @vals1 + 1 * z2 + 6 + 1 * z1, s10 >= 0, s10 <= 2, @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 10 + 6·z'' }→ 1 + (1 + z2 + z') + s19 :|: s19 >= 0, s19 <= 2 * z3 + 1 * z'' + 4, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 1 }→ quicksort#1(z) :|: z >= 0
quicksort#1(z) -{ 2 }→ quicksort#2(splitqs#1(@zs, @z), @z) :|: z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 3 }→ append(quicksort#1(@xs), 1 + z' + quicksort#1(@ys)) :|: z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(z') :|: @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 1 }→ split#1(z) :|: z >= 0
split#1(z) -{ 2 }→ insert(@x, split#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 2 }→ sortAll(split#1(z)) :|: z >= 0
splitqs(z, z') -{ 1 }→ splitqs#1(z', z) :|: z' >= 0, z >= 0
splitqs#1(z, z') -{ 2 }→ splitqs#2(splitqs#1(@xs, z'), z', @x) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 3 }→ s6 :|: s6 >= 0, s6 <= 1 * @ls + 1 * @rs + 1 * z'' + 2, s5 >= 0, s5 <= 2, s2 >= 0, s2 <= 3, @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: O(1) [0], size: O(1) [3] #ckgt: runtime: O(1) [0], size: O(1) [2] splitqs#3: runtime: O(1) [1], size: O(n1) [2 + z' + z'' + z1] append#1: runtime: O(n1) [1 + 2·z], size: O(n1) [z + z'] append: runtime: O(n1) [2 + 2·z], size: O(n1) [z + z'] #eq: runtime: O(1) [0], size: O(1) [2] splitqs#2: runtime: O(1) [3], size: O(n1) [1 + z + z''] #greater: runtime: O(1) [1], size: O(1) [2] insert#4: runtime: O(n1) [4 + 6·z''], size: O(n1) [6 + z' + z'' + z1 + z2 + z3] insert#2: runtime: O(n1) [7 + 6·z], size: O(n1) [5 + z + z' + z'' + z1] insert: runtime: O(n1) [9 + 6·z'], size: O(n1) [4 + 2·z + z'] insert#3: runtime: O(n1) [6 + 6·z''], size: O(n1) [5 + z + z'' + z1 + z2] insert#1: runtime: O(n1) [8 + 6·z'], size: O(n1) [4 + z + z' + z''] #equal: runtime: O(1) [1], size: O(1) [2] splitqs#1: runtime: O(n1) [1 + 5·z], size: O(n1) [2 + z] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ s11 :|: s11 >= 0, s11 <= 2, z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ s14 :|: s12 >= 0, s12 <= 2, s13 >= 0, s13 <= 2, s14 >= 0, s14 <= 2, @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#equal(z, z') -{ 1 }→ s9 :|: s9 >= 0, s9 <= 2, z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ s3 :|: s3 >= 0, s3 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
append(z, z') -{ 2 + 2·z }→ s7 :|: s7 >= 0, s7 <= 1 * z + 1 * z', z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 3 + 2·@xs }→ 1 + @x + s8 :|: s8 >= 0, s8 <= 1 * @xs + 1 * z', @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 9 + 6·z' }→ s15 :|: s15 >= 0, s15 <= 1 * z + 1 * z' + 1 * z + 4, z' >= 0, z >= 0
insert#1(z, z', z'') -{ 8 + 6·z' }→ s16 :|: s16 >= 0, s16 <= 1 * z' + 1 * @valX + 1 * z'' + 5 + 1 * @keyX, @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 7 + 6·@ls }→ s17 :|: s17 >= 0, s17 <= 1 * @l1 + 1 * @ls + 1 * z'' + 1 * z1 + 5, @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 6 + 6·z'' }→ s18 :|: s18 >= 0, s18 <= 1 * @key1 + 1 * z'' + 1 * @vals1 + 1 * z2 + 6 + 1 * z1, s10 >= 0, s10 <= 2, @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 10 + 6·z'' }→ 1 + (1 + z2 + z') + s19 :|: s19 >= 0, s19 <= 2 * z3 + 1 * z'' + 4, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 1 }→ quicksort#1(z) :|: z >= 0
quicksort#1(z) -{ 3 + 5·@zs }→ quicksort#2(s20, @z) :|: s20 >= 0, s20 <= 1 * @zs + 2, z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 3 }→ append(quicksort#1(@xs), 1 + z' + quicksort#1(@ys)) :|: z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(z') :|: @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 1 }→ split#1(z) :|: z >= 0
split#1(z) -{ 2 }→ insert(@x, split#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 2 }→ sortAll(split#1(z)) :|: z >= 0
splitqs(z, z') -{ 2 + 5·z' }→ s21 :|: s21 >= 0, s21 <= 1 * z' + 2, z' >= 0, z >= 0
splitqs#1(z, z') -{ 6 + 5·@xs }→ s23 :|: s22 >= 0, s22 <= 1 * @xs + 2, s23 >= 0, s23 <= 1 * s22 + 1 * @x + 1, @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 3 }→ s6 :|: s6 >= 0, s6 <= 1 * @ls + 1 * @rs + 1 * z'' + 2, s5 >= 0, s5 <= 2, s2 >= 0, s2 <= 3, @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: O(1) [0], size: O(1) [3] #ckgt: runtime: O(1) [0], size: O(1) [2] splitqs#3: runtime: O(1) [1], size: O(n1) [2 + z' + z'' + z1] append#1: runtime: O(n1) [1 + 2·z], size: O(n1) [z + z'] append: runtime: O(n1) [2 + 2·z], size: O(n1) [z + z'] #eq: runtime: O(1) [0], size: O(1) [2] splitqs#2: runtime: O(1) [3], size: O(n1) [1 + z + z''] #greater: runtime: O(1) [1], size: O(1) [2] insert#4: runtime: O(n1) [4 + 6·z''], size: O(n1) [6 + z' + z'' + z1 + z2 + z3] insert#2: runtime: O(n1) [7 + 6·z], size: O(n1) [5 + z + z' + z'' + z1] insert: runtime: O(n1) [9 + 6·z'], size: O(n1) [4 + 2·z + z'] insert#3: runtime: O(n1) [6 + 6·z''], size: O(n1) [5 + z + z'' + z1 + z2] insert#1: runtime: O(n1) [8 + 6·z'], size: O(n1) [4 + z + z' + z''] #equal: runtime: O(1) [1], size: O(1) [2] splitqs#1: runtime: O(n1) [1 + 5·z], size: O(n1) [2 + z] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ s11 :|: s11 >= 0, s11 <= 2, z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ s14 :|: s12 >= 0, s12 <= 2, s13 >= 0, s13 <= 2, s14 >= 0, s14 <= 2, @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#equal(z, z') -{ 1 }→ s9 :|: s9 >= 0, s9 <= 2, z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ s3 :|: s3 >= 0, s3 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
append(z, z') -{ 2 + 2·z }→ s7 :|: s7 >= 0, s7 <= 1 * z + 1 * z', z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 3 + 2·@xs }→ 1 + @x + s8 :|: s8 >= 0, s8 <= 1 * @xs + 1 * z', @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 9 + 6·z' }→ s15 :|: s15 >= 0, s15 <= 1 * z + 1 * z' + 1 * z + 4, z' >= 0, z >= 0
insert#1(z, z', z'') -{ 8 + 6·z' }→ s16 :|: s16 >= 0, s16 <= 1 * z' + 1 * @valX + 1 * z'' + 5 + 1 * @keyX, @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 7 + 6·@ls }→ s17 :|: s17 >= 0, s17 <= 1 * @l1 + 1 * @ls + 1 * z'' + 1 * z1 + 5, @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 6 + 6·z'' }→ s18 :|: s18 >= 0, s18 <= 1 * @key1 + 1 * z'' + 1 * @vals1 + 1 * z2 + 6 + 1 * z1, s10 >= 0, s10 <= 2, @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 10 + 6·z'' }→ 1 + (1 + z2 + z') + s19 :|: s19 >= 0, s19 <= 2 * z3 + 1 * z'' + 4, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 1 }→ quicksort#1(z) :|: z >= 0
quicksort#1(z) -{ 3 + 5·@zs }→ quicksort#2(s20, @z) :|: s20 >= 0, s20 <= 1 * @zs + 2, z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 3 }→ append(quicksort#1(@xs), 1 + z' + quicksort#1(@ys)) :|: z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(z') :|: @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 1 }→ split#1(z) :|: z >= 0
split#1(z) -{ 2 }→ insert(@x, split#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 2 }→ sortAll(split#1(z)) :|: z >= 0
splitqs(z, z') -{ 2 + 5·z' }→ s21 :|: s21 >= 0, s21 <= 1 * z' + 2, z' >= 0, z >= 0
splitqs#1(z, z') -{ 6 + 5·@xs }→ s23 :|: s22 >= 0, s22 <= 1 * @xs + 2, s23 >= 0, s23 <= 1 * s22 + 1 * @x + 1, @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 3 }→ s6 :|: s6 >= 0, s6 <= 1 * @ls + 1 * @rs + 1 * z'' + 2, s5 >= 0, s5 <= 2, s2 >= 0, s2 <= 3, @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: O(1) [0], size: O(1) [3] #ckgt: runtime: O(1) [0], size: O(1) [2] splitqs#3: runtime: O(1) [1], size: O(n1) [2 + z' + z'' + z1] append#1: runtime: O(n1) [1 + 2·z], size: O(n1) [z + z'] append: runtime: O(n1) [2 + 2·z], size: O(n1) [z + z'] #eq: runtime: O(1) [0], size: O(1) [2] splitqs#2: runtime: O(1) [3], size: O(n1) [1 + z + z''] #greater: runtime: O(1) [1], size: O(1) [2] insert#4: runtime: O(n1) [4 + 6·z''], size: O(n1) [6 + z' + z'' + z1 + z2 + z3] insert#2: runtime: O(n1) [7 + 6·z], size: O(n1) [5 + z + z' + z'' + z1] insert: runtime: O(n1) [9 + 6·z'], size: O(n1) [4 + 2·z + z'] insert#3: runtime: O(n1) [6 + 6·z''], size: O(n1) [5 + z + z'' + z1 + z2] insert#1: runtime: O(n1) [8 + 6·z'], size: O(n1) [4 + z + z' + z''] #equal: runtime: O(1) [1], size: O(1) [2] splitqs#1: runtime: O(n1) [1 + 5·z], size: O(n1) [2 + z] split#1: runtime: ?, size: O(n1) [4·z] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ s11 :|: s11 >= 0, s11 <= 2, z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ s14 :|: s12 >= 0, s12 <= 2, s13 >= 0, s13 <= 2, s14 >= 0, s14 <= 2, @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#equal(z, z') -{ 1 }→ s9 :|: s9 >= 0, s9 <= 2, z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ s3 :|: s3 >= 0, s3 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
append(z, z') -{ 2 + 2·z }→ s7 :|: s7 >= 0, s7 <= 1 * z + 1 * z', z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 3 + 2·@xs }→ 1 + @x + s8 :|: s8 >= 0, s8 <= 1 * @xs + 1 * z', @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 9 + 6·z' }→ s15 :|: s15 >= 0, s15 <= 1 * z + 1 * z' + 1 * z + 4, z' >= 0, z >= 0
insert#1(z, z', z'') -{ 8 + 6·z' }→ s16 :|: s16 >= 0, s16 <= 1 * z' + 1 * @valX + 1 * z'' + 5 + 1 * @keyX, @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 7 + 6·@ls }→ s17 :|: s17 >= 0, s17 <= 1 * @l1 + 1 * @ls + 1 * z'' + 1 * z1 + 5, @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 6 + 6·z'' }→ s18 :|: s18 >= 0, s18 <= 1 * @key1 + 1 * z'' + 1 * @vals1 + 1 * z2 + 6 + 1 * z1, s10 >= 0, s10 <= 2, @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 10 + 6·z'' }→ 1 + (1 + z2 + z') + s19 :|: s19 >= 0, s19 <= 2 * z3 + 1 * z'' + 4, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 1 }→ quicksort#1(z) :|: z >= 0
quicksort#1(z) -{ 3 + 5·@zs }→ quicksort#2(s20, @z) :|: s20 >= 0, s20 <= 1 * @zs + 2, z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 3 }→ append(quicksort#1(@xs), 1 + z' + quicksort#1(@ys)) :|: z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(z') :|: @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 1 }→ split#1(z) :|: z >= 0
split#1(z) -{ 2 }→ insert(@x, split#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 2 }→ sortAll(split#1(z)) :|: z >= 0
splitqs(z, z') -{ 2 + 5·z' }→ s21 :|: s21 >= 0, s21 <= 1 * z' + 2, z' >= 0, z >= 0
splitqs#1(z, z') -{ 6 + 5·@xs }→ s23 :|: s22 >= 0, s22 <= 1 * @xs + 2, s23 >= 0, s23 <= 1 * s22 + 1 * @x + 1, @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 3 }→ s6 :|: s6 >= 0, s6 <= 1 * @ls + 1 * @rs + 1 * z'' + 2, s5 >= 0, s5 <= 2, s2 >= 0, s2 <= 3, @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: O(1) [0], size: O(1) [3] #ckgt: runtime: O(1) [0], size: O(1) [2] splitqs#3: runtime: O(1) [1], size: O(n1) [2 + z' + z'' + z1] append#1: runtime: O(n1) [1 + 2·z], size: O(n1) [z + z'] append: runtime: O(n1) [2 + 2·z], size: O(n1) [z + z'] #eq: runtime: O(1) [0], size: O(1) [2] splitqs#2: runtime: O(1) [3], size: O(n1) [1 + z + z''] #greater: runtime: O(1) [1], size: O(1) [2] insert#4: runtime: O(n1) [4 + 6·z''], size: O(n1) [6 + z' + z'' + z1 + z2 + z3] insert#2: runtime: O(n1) [7 + 6·z], size: O(n1) [5 + z + z' + z'' + z1] insert: runtime: O(n1) [9 + 6·z'], size: O(n1) [4 + 2·z + z'] insert#3: runtime: O(n1) [6 + 6·z''], size: O(n1) [5 + z + z'' + z1 + z2] insert#1: runtime: O(n1) [8 + 6·z'], size: O(n1) [4 + z + z' + z''] #equal: runtime: O(1) [1], size: O(1) [2] splitqs#1: runtime: O(n1) [1 + 5·z], size: O(n1) [2 + z] split#1: runtime: O(n2) [1 + 11·z + 24·z2], size: O(n1) [4·z] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ s11 :|: s11 >= 0, s11 <= 2, z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ s14 :|: s12 >= 0, s12 <= 2, s13 >= 0, s13 <= 2, s14 >= 0, s14 <= 2, @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#equal(z, z') -{ 1 }→ s9 :|: s9 >= 0, s9 <= 2, z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ s3 :|: s3 >= 0, s3 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
append(z, z') -{ 2 + 2·z }→ s7 :|: s7 >= 0, s7 <= 1 * z + 1 * z', z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 3 + 2·@xs }→ 1 + @x + s8 :|: s8 >= 0, s8 <= 1 * @xs + 1 * z', @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 9 + 6·z' }→ s15 :|: s15 >= 0, s15 <= 1 * z + 1 * z' + 1 * z + 4, z' >= 0, z >= 0
insert#1(z, z', z'') -{ 8 + 6·z' }→ s16 :|: s16 >= 0, s16 <= 1 * z' + 1 * @valX + 1 * z'' + 5 + 1 * @keyX, @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 7 + 6·@ls }→ s17 :|: s17 >= 0, s17 <= 1 * @l1 + 1 * @ls + 1 * z'' + 1 * z1 + 5, @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 6 + 6·z'' }→ s18 :|: s18 >= 0, s18 <= 1 * @key1 + 1 * z'' + 1 * @vals1 + 1 * z2 + 6 + 1 * z1, s10 >= 0, s10 <= 2, @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 10 + 6·z'' }→ 1 + (1 + z2 + z') + s19 :|: s19 >= 0, s19 <= 2 * z3 + 1 * z'' + 4, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 1 }→ quicksort#1(z) :|: z >= 0
quicksort#1(z) -{ 3 + 5·@zs }→ quicksort#2(s20, @z) :|: s20 >= 0, s20 <= 1 * @zs + 2, z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 3 }→ append(quicksort#1(@xs), 1 + z' + quicksort#1(@ys)) :|: z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(z') :|: @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 2 + 11·z + 24·z2 }→ s24 :|: s24 >= 0, s24 <= 4 * z, z >= 0
split#1(z) -{ 12 + 11·@xs + 24·@xs2 + 6·s25 }→ s26 :|: s25 >= 0, s25 <= 4 * @xs, s26 >= 0, s26 <= 2 * @x + 1 * s25 + 4, @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 3 + 11·z + 24·z2 }→ sortAll(s27) :|: s27 >= 0, s27 <= 4 * z, z >= 0
splitqs(z, z') -{ 2 + 5·z' }→ s21 :|: s21 >= 0, s21 <= 1 * z' + 2, z' >= 0, z >= 0
splitqs#1(z, z') -{ 6 + 5·@xs }→ s23 :|: s22 >= 0, s22 <= 1 * @xs + 2, s23 >= 0, s23 <= 1 * s22 + 1 * @x + 1, @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 3 }→ s6 :|: s6 >= 0, s6 <= 1 * @ls + 1 * @rs + 1 * z'' + 2, s5 >= 0, s5 <= 2, s2 >= 0, s2 <= 3, @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: O(1) [0], size: O(1) [3] #ckgt: runtime: O(1) [0], size: O(1) [2] splitqs#3: runtime: O(1) [1], size: O(n1) [2 + z' + z'' + z1] append#1: runtime: O(n1) [1 + 2·z], size: O(n1) [z + z'] append: runtime: O(n1) [2 + 2·z], size: O(n1) [z + z'] #eq: runtime: O(1) [0], size: O(1) [2] splitqs#2: runtime: O(1) [3], size: O(n1) [1 + z + z''] #greater: runtime: O(1) [1], size: O(1) [2] insert#4: runtime: O(n1) [4 + 6·z''], size: O(n1) [6 + z' + z'' + z1 + z2 + z3] insert#2: runtime: O(n1) [7 + 6·z], size: O(n1) [5 + z + z' + z'' + z1] insert: runtime: O(n1) [9 + 6·z'], size: O(n1) [4 + 2·z + z'] insert#3: runtime: O(n1) [6 + 6·z''], size: O(n1) [5 + z + z'' + z1 + z2] insert#1: runtime: O(n1) [8 + 6·z'], size: O(n1) [4 + z + z' + z''] #equal: runtime: O(1) [1], size: O(1) [2] splitqs#1: runtime: O(n1) [1 + 5·z], size: O(n1) [2 + z] split#1: runtime: O(n2) [1 + 11·z + 24·z2], size: O(n1) [4·z] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ s11 :|: s11 >= 0, s11 <= 2, z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ s14 :|: s12 >= 0, s12 <= 2, s13 >= 0, s13 <= 2, s14 >= 0, s14 <= 2, @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#equal(z, z') -{ 1 }→ s9 :|: s9 >= 0, s9 <= 2, z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ s3 :|: s3 >= 0, s3 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
append(z, z') -{ 2 + 2·z }→ s7 :|: s7 >= 0, s7 <= 1 * z + 1 * z', z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 3 + 2·@xs }→ 1 + @x + s8 :|: s8 >= 0, s8 <= 1 * @xs + 1 * z', @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 9 + 6·z' }→ s15 :|: s15 >= 0, s15 <= 1 * z + 1 * z' + 1 * z + 4, z' >= 0, z >= 0
insert#1(z, z', z'') -{ 8 + 6·z' }→ s16 :|: s16 >= 0, s16 <= 1 * z' + 1 * @valX + 1 * z'' + 5 + 1 * @keyX, @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 7 + 6·@ls }→ s17 :|: s17 >= 0, s17 <= 1 * @l1 + 1 * @ls + 1 * z'' + 1 * z1 + 5, @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 6 + 6·z'' }→ s18 :|: s18 >= 0, s18 <= 1 * @key1 + 1 * z'' + 1 * @vals1 + 1 * z2 + 6 + 1 * z1, s10 >= 0, s10 <= 2, @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 10 + 6·z'' }→ 1 + (1 + z2 + z') + s19 :|: s19 >= 0, s19 <= 2 * z3 + 1 * z'' + 4, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 1 }→ quicksort#1(z) :|: z >= 0
quicksort#1(z) -{ 3 + 5·@zs }→ quicksort#2(s20, @z) :|: s20 >= 0, s20 <= 1 * @zs + 2, z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 3 }→ append(quicksort#1(@xs), 1 + z' + quicksort#1(@ys)) :|: z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(z') :|: @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 2 + 11·z + 24·z2 }→ s24 :|: s24 >= 0, s24 <= 4 * z, z >= 0
split#1(z) -{ 12 + 11·@xs + 24·@xs2 + 6·s25 }→ s26 :|: s25 >= 0, s25 <= 4 * @xs, s26 >= 0, s26 <= 2 * @x + 1 * s25 + 4, @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 3 + 11·z + 24·z2 }→ sortAll(s27) :|: s27 >= 0, s27 <= 4 * z, z >= 0
splitqs(z, z') -{ 2 + 5·z' }→ s21 :|: s21 >= 0, s21 <= 1 * z' + 2, z' >= 0, z >= 0
splitqs#1(z, z') -{ 6 + 5·@xs }→ s23 :|: s22 >= 0, s22 <= 1 * @xs + 2, s23 >= 0, s23 <= 1 * s22 + 1 * @x + 1, @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 3 }→ s6 :|: s6 >= 0, s6 <= 1 * @ls + 1 * @rs + 1 * z'' + 2, s5 >= 0, s5 <= 2, s2 >= 0, s2 <= 3, @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: O(1) [0], size: O(1) [3] #ckgt: runtime: O(1) [0], size: O(1) [2] splitqs#3: runtime: O(1) [1], size: O(n1) [2 + z' + z'' + z1] append#1: runtime: O(n1) [1 + 2·z], size: O(n1) [z + z'] append: runtime: O(n1) [2 + 2·z], size: O(n1) [z + z'] #eq: runtime: O(1) [0], size: O(1) [2] splitqs#2: runtime: O(1) [3], size: O(n1) [1 + z + z''] #greater: runtime: O(1) [1], size: O(1) [2] insert#4: runtime: O(n1) [4 + 6·z''], size: O(n1) [6 + z' + z'' + z1 + z2 + z3] insert#2: runtime: O(n1) [7 + 6·z], size: O(n1) [5 + z + z' + z'' + z1] insert: runtime: O(n1) [9 + 6·z'], size: O(n1) [4 + 2·z + z'] insert#3: runtime: O(n1) [6 + 6·z''], size: O(n1) [5 + z + z'' + z1 + z2] insert#1: runtime: O(n1) [8 + 6·z'], size: O(n1) [4 + z + z' + z''] #equal: runtime: O(1) [1], size: O(1) [2] splitqs#1: runtime: O(n1) [1 + 5·z], size: O(n1) [2 + z] split#1: runtime: O(n2) [1 + 11·z + 24·z2], size: O(n1) [4·z] splitqs: runtime: ?, size: O(n1) [2 + z'] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ s11 :|: s11 >= 0, s11 <= 2, z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ s14 :|: s12 >= 0, s12 <= 2, s13 >= 0, s13 <= 2, s14 >= 0, s14 <= 2, @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#equal(z, z') -{ 1 }→ s9 :|: s9 >= 0, s9 <= 2, z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ s3 :|: s3 >= 0, s3 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
append(z, z') -{ 2 + 2·z }→ s7 :|: s7 >= 0, s7 <= 1 * z + 1 * z', z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 3 + 2·@xs }→ 1 + @x + s8 :|: s8 >= 0, s8 <= 1 * @xs + 1 * z', @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 9 + 6·z' }→ s15 :|: s15 >= 0, s15 <= 1 * z + 1 * z' + 1 * z + 4, z' >= 0, z >= 0
insert#1(z, z', z'') -{ 8 + 6·z' }→ s16 :|: s16 >= 0, s16 <= 1 * z' + 1 * @valX + 1 * z'' + 5 + 1 * @keyX, @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 7 + 6·@ls }→ s17 :|: s17 >= 0, s17 <= 1 * @l1 + 1 * @ls + 1 * z'' + 1 * z1 + 5, @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 6 + 6·z'' }→ s18 :|: s18 >= 0, s18 <= 1 * @key1 + 1 * z'' + 1 * @vals1 + 1 * z2 + 6 + 1 * z1, s10 >= 0, s10 <= 2, @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 10 + 6·z'' }→ 1 + (1 + z2 + z') + s19 :|: s19 >= 0, s19 <= 2 * z3 + 1 * z'' + 4, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 1 }→ quicksort#1(z) :|: z >= 0
quicksort#1(z) -{ 3 + 5·@zs }→ quicksort#2(s20, @z) :|: s20 >= 0, s20 <= 1 * @zs + 2, z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 3 }→ append(quicksort#1(@xs), 1 + z' + quicksort#1(@ys)) :|: z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(z') :|: @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 2 + 11·z + 24·z2 }→ s24 :|: s24 >= 0, s24 <= 4 * z, z >= 0
split#1(z) -{ 12 + 11·@xs + 24·@xs2 + 6·s25 }→ s26 :|: s25 >= 0, s25 <= 4 * @xs, s26 >= 0, s26 <= 2 * @x + 1 * s25 + 4, @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 3 + 11·z + 24·z2 }→ sortAll(s27) :|: s27 >= 0, s27 <= 4 * z, z >= 0
splitqs(z, z') -{ 2 + 5·z' }→ s21 :|: s21 >= 0, s21 <= 1 * z' + 2, z' >= 0, z >= 0
splitqs#1(z, z') -{ 6 + 5·@xs }→ s23 :|: s22 >= 0, s22 <= 1 * @xs + 2, s23 >= 0, s23 <= 1 * s22 + 1 * @x + 1, @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 3 }→ s6 :|: s6 >= 0, s6 <= 1 * @ls + 1 * @rs + 1 * z'' + 2, s5 >= 0, s5 <= 2, s2 >= 0, s2 <= 3, @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: O(1) [0], size: O(1) [3] #ckgt: runtime: O(1) [0], size: O(1) [2] splitqs#3: runtime: O(1) [1], size: O(n1) [2 + z' + z'' + z1] append#1: runtime: O(n1) [1 + 2·z], size: O(n1) [z + z'] append: runtime: O(n1) [2 + 2·z], size: O(n1) [z + z'] #eq: runtime: O(1) [0], size: O(1) [2] splitqs#2: runtime: O(1) [3], size: O(n1) [1 + z + z''] #greater: runtime: O(1) [1], size: O(1) [2] insert#4: runtime: O(n1) [4 + 6·z''], size: O(n1) [6 + z' + z'' + z1 + z2 + z3] insert#2: runtime: O(n1) [7 + 6·z], size: O(n1) [5 + z + z' + z'' + z1] insert: runtime: O(n1) [9 + 6·z'], size: O(n1) [4 + 2·z + z'] insert#3: runtime: O(n1) [6 + 6·z''], size: O(n1) [5 + z + z'' + z1 + z2] insert#1: runtime: O(n1) [8 + 6·z'], size: O(n1) [4 + z + z' + z''] #equal: runtime: O(1) [1], size: O(1) [2] splitqs#1: runtime: O(n1) [1 + 5·z], size: O(n1) [2 + z] split#1: runtime: O(n2) [1 + 11·z + 24·z2], size: O(n1) [4·z] splitqs: runtime: O(n1) [2 + 5·z'], size: O(n1) [2 + z'] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ s11 :|: s11 >= 0, s11 <= 2, z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ s14 :|: s12 >= 0, s12 <= 2, s13 >= 0, s13 <= 2, s14 >= 0, s14 <= 2, @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#equal(z, z') -{ 1 }→ s9 :|: s9 >= 0, s9 <= 2, z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ s3 :|: s3 >= 0, s3 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
append(z, z') -{ 2 + 2·z }→ s7 :|: s7 >= 0, s7 <= 1 * z + 1 * z', z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 3 + 2·@xs }→ 1 + @x + s8 :|: s8 >= 0, s8 <= 1 * @xs + 1 * z', @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 9 + 6·z' }→ s15 :|: s15 >= 0, s15 <= 1 * z + 1 * z' + 1 * z + 4, z' >= 0, z >= 0
insert#1(z, z', z'') -{ 8 + 6·z' }→ s16 :|: s16 >= 0, s16 <= 1 * z' + 1 * @valX + 1 * z'' + 5 + 1 * @keyX, @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 7 + 6·@ls }→ s17 :|: s17 >= 0, s17 <= 1 * @l1 + 1 * @ls + 1 * z'' + 1 * z1 + 5, @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 6 + 6·z'' }→ s18 :|: s18 >= 0, s18 <= 1 * @key1 + 1 * z'' + 1 * @vals1 + 1 * z2 + 6 + 1 * z1, s10 >= 0, s10 <= 2, @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 10 + 6·z'' }→ 1 + (1 + z2 + z') + s19 :|: s19 >= 0, s19 <= 2 * z3 + 1 * z'' + 4, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 1 }→ quicksort#1(z) :|: z >= 0
quicksort#1(z) -{ 3 + 5·@zs }→ quicksort#2(s20, @z) :|: s20 >= 0, s20 <= 1 * @zs + 2, z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 3 }→ append(quicksort#1(@xs), 1 + z' + quicksort#1(@ys)) :|: z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(z') :|: @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 2 + 11·z + 24·z2 }→ s24 :|: s24 >= 0, s24 <= 4 * z, z >= 0
split#1(z) -{ 12 + 11·@xs + 24·@xs2 + 6·s25 }→ s26 :|: s25 >= 0, s25 <= 4 * @xs, s26 >= 0, s26 <= 2 * @x + 1 * s25 + 4, @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 3 + 11·z + 24·z2 }→ sortAll(s27) :|: s27 >= 0, s27 <= 4 * z, z >= 0
splitqs(z, z') -{ 2 + 5·z' }→ s21 :|: s21 >= 0, s21 <= 1 * z' + 2, z' >= 0, z >= 0
splitqs#1(z, z') -{ 6 + 5·@xs }→ s23 :|: s22 >= 0, s22 <= 1 * @xs + 2, s23 >= 0, s23 <= 1 * s22 + 1 * @x + 1, @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 3 }→ s6 :|: s6 >= 0, s6 <= 1 * @ls + 1 * @rs + 1 * z'' + 2, s5 >= 0, s5 <= 2, s2 >= 0, s2 <= 3, @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: O(1) [0], size: O(1) [3] #ckgt: runtime: O(1) [0], size: O(1) [2] splitqs#3: runtime: O(1) [1], size: O(n1) [2 + z' + z'' + z1] append#1: runtime: O(n1) [1 + 2·z], size: O(n1) [z + z'] append: runtime: O(n1) [2 + 2·z], size: O(n1) [z + z'] #eq: runtime: O(1) [0], size: O(1) [2] splitqs#2: runtime: O(1) [3], size: O(n1) [1 + z + z''] #greater: runtime: O(1) [1], size: O(1) [2] insert#4: runtime: O(n1) [4 + 6·z''], size: O(n1) [6 + z' + z'' + z1 + z2 + z3] insert#2: runtime: O(n1) [7 + 6·z], size: O(n1) [5 + z + z' + z'' + z1] insert: runtime: O(n1) [9 + 6·z'], size: O(n1) [4 + 2·z + z'] insert#3: runtime: O(n1) [6 + 6·z''], size: O(n1) [5 + z + z'' + z1 + z2] insert#1: runtime: O(n1) [8 + 6·z'], size: O(n1) [4 + z + z' + z''] #equal: runtime: O(1) [1], size: O(1) [2] splitqs#1: runtime: O(n1) [1 + 5·z], size: O(n1) [2 + z] split#1: runtime: O(n2) [1 + 11·z + 24·z2], size: O(n1) [4·z] splitqs: runtime: O(n1) [2 + 5·z'], size: O(n1) [2 + z'] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ s11 :|: s11 >= 0, s11 <= 2, z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ s14 :|: s12 >= 0, s12 <= 2, s13 >= 0, s13 <= 2, s14 >= 0, s14 <= 2, @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#equal(z, z') -{ 1 }→ s9 :|: s9 >= 0, s9 <= 2, z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ s3 :|: s3 >= 0, s3 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
append(z, z') -{ 2 + 2·z }→ s7 :|: s7 >= 0, s7 <= 1 * z + 1 * z', z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 3 + 2·@xs }→ 1 + @x + s8 :|: s8 >= 0, s8 <= 1 * @xs + 1 * z', @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 9 + 6·z' }→ s15 :|: s15 >= 0, s15 <= 1 * z + 1 * z' + 1 * z + 4, z' >= 0, z >= 0
insert#1(z, z', z'') -{ 8 + 6·z' }→ s16 :|: s16 >= 0, s16 <= 1 * z' + 1 * @valX + 1 * z'' + 5 + 1 * @keyX, @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 7 + 6·@ls }→ s17 :|: s17 >= 0, s17 <= 1 * @l1 + 1 * @ls + 1 * z'' + 1 * z1 + 5, @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 6 + 6·z'' }→ s18 :|: s18 >= 0, s18 <= 1 * @key1 + 1 * z'' + 1 * @vals1 + 1 * z2 + 6 + 1 * z1, s10 >= 0, s10 <= 2, @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 10 + 6·z'' }→ 1 + (1 + z2 + z') + s19 :|: s19 >= 0, s19 <= 2 * z3 + 1 * z'' + 4, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 1 }→ quicksort#1(z) :|: z >= 0
quicksort#1(z) -{ 3 + 5·@zs }→ quicksort#2(s20, @z) :|: s20 >= 0, s20 <= 1 * @zs + 2, z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 3 }→ append(quicksort#1(@xs), 1 + z' + quicksort#1(@ys)) :|: z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(z') :|: @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 2 + 11·z + 24·z2 }→ s24 :|: s24 >= 0, s24 <= 4 * z, z >= 0
split#1(z) -{ 12 + 11·@xs + 24·@xs2 + 6·s25 }→ s26 :|: s25 >= 0, s25 <= 4 * @xs, s26 >= 0, s26 <= 2 * @x + 1 * s25 + 4, @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 3 + 11·z + 24·z2 }→ sortAll(s27) :|: s27 >= 0, s27 <= 4 * z, z >= 0
splitqs(z, z') -{ 2 + 5·z' }→ s21 :|: s21 >= 0, s21 <= 1 * z' + 2, z' >= 0, z >= 0
splitqs#1(z, z') -{ 6 + 5·@xs }→ s23 :|: s22 >= 0, s22 <= 1 * @xs + 2, s23 >= 0, s23 <= 1 * s22 + 1 * @x + 1, @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 3 }→ s6 :|: s6 >= 0, s6 <= 1 * @ls + 1 * @rs + 1 * z'' + 2, s5 >= 0, s5 <= 2, s2 >= 0, s2 <= 3, @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: O(1) [0], size: O(1) [3] #ckgt: runtime: O(1) [0], size: O(1) [2] splitqs#3: runtime: O(1) [1], size: O(n1) [2 + z' + z'' + z1] append#1: runtime: O(n1) [1 + 2·z], size: O(n1) [z + z'] append: runtime: O(n1) [2 + 2·z], size: O(n1) [z + z'] #eq: runtime: O(1) [0], size: O(1) [2] splitqs#2: runtime: O(1) [3], size: O(n1) [1 + z + z''] #greater: runtime: O(1) [1], size: O(1) [2] insert#4: runtime: O(n1) [4 + 6·z''], size: O(n1) [6 + z' + z'' + z1 + z2 + z3] insert#2: runtime: O(n1) [7 + 6·z], size: O(n1) [5 + z + z' + z'' + z1] insert: runtime: O(n1) [9 + 6·z'], size: O(n1) [4 + 2·z + z'] insert#3: runtime: O(n1) [6 + 6·z''], size: O(n1) [5 + z + z'' + z1 + z2] insert#1: runtime: O(n1) [8 + 6·z'], size: O(n1) [4 + z + z' + z''] #equal: runtime: O(1) [1], size: O(1) [2] splitqs#1: runtime: O(n1) [1 + 5·z], size: O(n1) [2 + z] split#1: runtime: O(n2) [1 + 11·z + 24·z2], size: O(n1) [4·z] splitqs: runtime: O(n1) [2 + 5·z'], size: O(n1) [2 + z'] quicksort#1: runtime: ?, size: O(n1) [1 + 2·z] quicksort#2: runtime: ?, size: O(n1) [1 + 2·z + z'] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ s11 :|: s11 >= 0, s11 <= 2, z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ s14 :|: s12 >= 0, s12 <= 2, s13 >= 0, s13 <= 2, s14 >= 0, s14 <= 2, @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#equal(z, z') -{ 1 }→ s9 :|: s9 >= 0, s9 <= 2, z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ s3 :|: s3 >= 0, s3 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
append(z, z') -{ 2 + 2·z }→ s7 :|: s7 >= 0, s7 <= 1 * z + 1 * z', z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 3 + 2·@xs }→ 1 + @x + s8 :|: s8 >= 0, s8 <= 1 * @xs + 1 * z', @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 9 + 6·z' }→ s15 :|: s15 >= 0, s15 <= 1 * z + 1 * z' + 1 * z + 4, z' >= 0, z >= 0
insert#1(z, z', z'') -{ 8 + 6·z' }→ s16 :|: s16 >= 0, s16 <= 1 * z' + 1 * @valX + 1 * z'' + 5 + 1 * @keyX, @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 7 + 6·@ls }→ s17 :|: s17 >= 0, s17 <= 1 * @l1 + 1 * @ls + 1 * z'' + 1 * z1 + 5, @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 6 + 6·z'' }→ s18 :|: s18 >= 0, s18 <= 1 * @key1 + 1 * z'' + 1 * @vals1 + 1 * z2 + 6 + 1 * z1, s10 >= 0, s10 <= 2, @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 10 + 6·z'' }→ 1 + (1 + z2 + z') + s19 :|: s19 >= 0, s19 <= 2 * z3 + 1 * z'' + 4, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 1 }→ quicksort#1(z) :|: z >= 0
quicksort#1(z) -{ 3 + 5·@zs }→ quicksort#2(s20, @z) :|: s20 >= 0, s20 <= 1 * @zs + 2, z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 3 }→ append(quicksort#1(@xs), 1 + z' + quicksort#1(@ys)) :|: z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(z') :|: @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 2 + 11·z + 24·z2 }→ s24 :|: s24 >= 0, s24 <= 4 * z, z >= 0
split#1(z) -{ 12 + 11·@xs + 24·@xs2 + 6·s25 }→ s26 :|: s25 >= 0, s25 <= 4 * @xs, s26 >= 0, s26 <= 2 * @x + 1 * s25 + 4, @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 3 + 11·z + 24·z2 }→ sortAll(s27) :|: s27 >= 0, s27 <= 4 * z, z >= 0
splitqs(z, z') -{ 2 + 5·z' }→ s21 :|: s21 >= 0, s21 <= 1 * z' + 2, z' >= 0, z >= 0
splitqs#1(z, z') -{ 6 + 5·@xs }→ s23 :|: s22 >= 0, s22 <= 1 * @xs + 2, s23 >= 0, s23 <= 1 * s22 + 1 * @x + 1, @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 3 }→ s6 :|: s6 >= 0, s6 <= 1 * @ls + 1 * @rs + 1 * z'' + 2, s5 >= 0, s5 <= 2, s2 >= 0, s2 <= 3, @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: O(1) [0], size: O(1) [3] #ckgt: runtime: O(1) [0], size: O(1) [2] splitqs#3: runtime: O(1) [1], size: O(n1) [2 + z' + z'' + z1] append#1: runtime: O(n1) [1 + 2·z], size: O(n1) [z + z'] append: runtime: O(n1) [2 + 2·z], size: O(n1) [z + z'] #eq: runtime: O(1) [0], size: O(1) [2] splitqs#2: runtime: O(1) [3], size: O(n1) [1 + z + z''] #greater: runtime: O(1) [1], size: O(1) [2] insert#4: runtime: O(n1) [4 + 6·z''], size: O(n1) [6 + z' + z'' + z1 + z2 + z3] insert#2: runtime: O(n1) [7 + 6·z], size: O(n1) [5 + z + z' + z'' + z1] insert: runtime: O(n1) [9 + 6·z'], size: O(n1) [4 + 2·z + z'] insert#3: runtime: O(n1) [6 + 6·z''], size: O(n1) [5 + z + z'' + z1 + z2] insert#1: runtime: O(n1) [8 + 6·z'], size: O(n1) [4 + z + z' + z''] #equal: runtime: O(1) [1], size: O(1) [2] splitqs#1: runtime: O(n1) [1 + 5·z], size: O(n1) [2 + z] split#1: runtime: O(n2) [1 + 11·z + 24·z2], size: O(n1) [4·z] splitqs: runtime: O(n1) [2 + 5·z'], size: O(n1) [2 + z'] quicksort#1: runtime: O(n2) [59 + 164·z + 90·z2], size: O(n1) [1 + 2·z] quicksort#2: runtime: O(n2) [125 + 332·z + 180·z2], size: O(n1) [1 + 2·z + z'] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ s11 :|: s11 >= 0, s11 <= 2, z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ s14 :|: s12 >= 0, s12 <= 2, s13 >= 0, s13 <= 2, s14 >= 0, s14 <= 2, @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#equal(z, z') -{ 1 }→ s9 :|: s9 >= 0, s9 <= 2, z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ s3 :|: s3 >= 0, s3 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
append(z, z') -{ 2 + 2·z }→ s7 :|: s7 >= 0, s7 <= 1 * z + 1 * z', z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 3 + 2·@xs }→ 1 + @x + s8 :|: s8 >= 0, s8 <= 1 * @xs + 1 * z', @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 9 + 6·z' }→ s15 :|: s15 >= 0, s15 <= 1 * z + 1 * z' + 1 * z + 4, z' >= 0, z >= 0
insert#1(z, z', z'') -{ 8 + 6·z' }→ s16 :|: s16 >= 0, s16 <= 1 * z' + 1 * @valX + 1 * z'' + 5 + 1 * @keyX, @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 7 + 6·@ls }→ s17 :|: s17 >= 0, s17 <= 1 * @l1 + 1 * @ls + 1 * z'' + 1 * z1 + 5, @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 6 + 6·z'' }→ s18 :|: s18 >= 0, s18 <= 1 * @key1 + 1 * z'' + 1 * @vals1 + 1 * z2 + 6 + 1 * z1, s10 >= 0, s10 <= 2, @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 10 + 6·z'' }→ 1 + (1 + z2 + z') + s19 :|: s19 >= 0, s19 <= 2 * z3 + 1 * z'' + 4, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 60 + 164·z + 90·z2 }→ s28 :|: s28 >= 0, s28 <= 1 + 2 * z, z >= 0
quicksort#1(z) -{ 128 + 5·@zs + 332·s20 + 180·s202 }→ s29 :|: s29 >= 0, s29 <= 2 * s20 + 1 * @z + 1, s20 >= 0, s20 <= 1 * @zs + 2, z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 123 + 164·@xs + 90·@xs2 + 164·@ys + 90·@ys2 + 2·s30 }→ s32 :|: s30 >= 0, s30 <= 1 + 2 * @xs, s31 >= 0, s31 <= 1 + 2 * @ys, s32 >= 0, s32 <= 1 * s30 + 1 * (1 + z' + s31), z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(z') :|: @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 2 + 11·z + 24·z2 }→ s24 :|: s24 >= 0, s24 <= 4 * z, z >= 0
split#1(z) -{ 12 + 11·@xs + 24·@xs2 + 6·s25 }→ s26 :|: s25 >= 0, s25 <= 4 * @xs, s26 >= 0, s26 <= 2 * @x + 1 * s25 + 4, @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 3 + 11·z + 24·z2 }→ sortAll(s27) :|: s27 >= 0, s27 <= 4 * z, z >= 0
splitqs(z, z') -{ 2 + 5·z' }→ s21 :|: s21 >= 0, s21 <= 1 * z' + 2, z' >= 0, z >= 0
splitqs#1(z, z') -{ 6 + 5·@xs }→ s23 :|: s22 >= 0, s22 <= 1 * @xs + 2, s23 >= 0, s23 <= 1 * s22 + 1 * @x + 1, @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 3 }→ s6 :|: s6 >= 0, s6 <= 1 * @ls + 1 * @rs + 1 * z'' + 2, s5 >= 0, s5 <= 2, s2 >= 0, s2 <= 3, @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: O(1) [0], size: O(1) [3] #ckgt: runtime: O(1) [0], size: O(1) [2] splitqs#3: runtime: O(1) [1], size: O(n1) [2 + z' + z'' + z1] append#1: runtime: O(n1) [1 + 2·z], size: O(n1) [z + z'] append: runtime: O(n1) [2 + 2·z], size: O(n1) [z + z'] #eq: runtime: O(1) [0], size: O(1) [2] splitqs#2: runtime: O(1) [3], size: O(n1) [1 + z + z''] #greater: runtime: O(1) [1], size: O(1) [2] insert#4: runtime: O(n1) [4 + 6·z''], size: O(n1) [6 + z' + z'' + z1 + z2 + z3] insert#2: runtime: O(n1) [7 + 6·z], size: O(n1) [5 + z + z' + z'' + z1] insert: runtime: O(n1) [9 + 6·z'], size: O(n1) [4 + 2·z + z'] insert#3: runtime: O(n1) [6 + 6·z''], size: O(n1) [5 + z + z'' + z1 + z2] insert#1: runtime: O(n1) [8 + 6·z'], size: O(n1) [4 + z + z' + z''] #equal: runtime: O(1) [1], size: O(1) [2] splitqs#1: runtime: O(n1) [1 + 5·z], size: O(n1) [2 + z] split#1: runtime: O(n2) [1 + 11·z + 24·z2], size: O(n1) [4·z] splitqs: runtime: O(n1) [2 + 5·z'], size: O(n1) [2 + z'] quicksort#1: runtime: O(n2) [59 + 164·z + 90·z2], size: O(n1) [1 + 2·z] quicksort#2: runtime: O(n2) [125 + 332·z + 180·z2], size: O(n1) [1 + 2·z + z'] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ s11 :|: s11 >= 0, s11 <= 2, z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ s14 :|: s12 >= 0, s12 <= 2, s13 >= 0, s13 <= 2, s14 >= 0, s14 <= 2, @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#equal(z, z') -{ 1 }→ s9 :|: s9 >= 0, s9 <= 2, z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ s3 :|: s3 >= 0, s3 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
append(z, z') -{ 2 + 2·z }→ s7 :|: s7 >= 0, s7 <= 1 * z + 1 * z', z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 3 + 2·@xs }→ 1 + @x + s8 :|: s8 >= 0, s8 <= 1 * @xs + 1 * z', @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 9 + 6·z' }→ s15 :|: s15 >= 0, s15 <= 1 * z + 1 * z' + 1 * z + 4, z' >= 0, z >= 0
insert#1(z, z', z'') -{ 8 + 6·z' }→ s16 :|: s16 >= 0, s16 <= 1 * z' + 1 * @valX + 1 * z'' + 5 + 1 * @keyX, @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 7 + 6·@ls }→ s17 :|: s17 >= 0, s17 <= 1 * @l1 + 1 * @ls + 1 * z'' + 1 * z1 + 5, @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 6 + 6·z'' }→ s18 :|: s18 >= 0, s18 <= 1 * @key1 + 1 * z'' + 1 * @vals1 + 1 * z2 + 6 + 1 * z1, s10 >= 0, s10 <= 2, @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 10 + 6·z'' }→ 1 + (1 + z2 + z') + s19 :|: s19 >= 0, s19 <= 2 * z3 + 1 * z'' + 4, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 60 + 164·z + 90·z2 }→ s28 :|: s28 >= 0, s28 <= 1 + 2 * z, z >= 0
quicksort#1(z) -{ 128 + 5·@zs + 332·s20 + 180·s202 }→ s29 :|: s29 >= 0, s29 <= 2 * s20 + 1 * @z + 1, s20 >= 0, s20 <= 1 * @zs + 2, z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 123 + 164·@xs + 90·@xs2 + 164·@ys + 90·@ys2 + 2·s30 }→ s32 :|: s30 >= 0, s30 <= 1 + 2 * @xs, s31 >= 0, s31 <= 1 + 2 * @ys, s32 >= 0, s32 <= 1 * s30 + 1 * (1 + z' + s31), z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(z') :|: @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 2 + 11·z + 24·z2 }→ s24 :|: s24 >= 0, s24 <= 4 * z, z >= 0
split#1(z) -{ 12 + 11·@xs + 24·@xs2 + 6·s25 }→ s26 :|: s25 >= 0, s25 <= 4 * @xs, s26 >= 0, s26 <= 2 * @x + 1 * s25 + 4, @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 3 + 11·z + 24·z2 }→ sortAll(s27) :|: s27 >= 0, s27 <= 4 * z, z >= 0
splitqs(z, z') -{ 2 + 5·z' }→ s21 :|: s21 >= 0, s21 <= 1 * z' + 2, z' >= 0, z >= 0
splitqs#1(z, z') -{ 6 + 5·@xs }→ s23 :|: s22 >= 0, s22 <= 1 * @xs + 2, s23 >= 0, s23 <= 1 * s22 + 1 * @x + 1, @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 3 }→ s6 :|: s6 >= 0, s6 <= 1 * @ls + 1 * @rs + 1 * z'' + 2, s5 >= 0, s5 <= 2, s2 >= 0, s2 <= 3, @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: O(1) [0], size: O(1) [3] #ckgt: runtime: O(1) [0], size: O(1) [2] splitqs#3: runtime: O(1) [1], size: O(n1) [2 + z' + z'' + z1] append#1: runtime: O(n1) [1 + 2·z], size: O(n1) [z + z'] append: runtime: O(n1) [2 + 2·z], size: O(n1) [z + z'] #eq: runtime: O(1) [0], size: O(1) [2] splitqs#2: runtime: O(1) [3], size: O(n1) [1 + z + z''] #greater: runtime: O(1) [1], size: O(1) [2] insert#4: runtime: O(n1) [4 + 6·z''], size: O(n1) [6 + z' + z'' + z1 + z2 + z3] insert#2: runtime: O(n1) [7 + 6·z], size: O(n1) [5 + z + z' + z'' + z1] insert: runtime: O(n1) [9 + 6·z'], size: O(n1) [4 + 2·z + z'] insert#3: runtime: O(n1) [6 + 6·z''], size: O(n1) [5 + z + z'' + z1 + z2] insert#1: runtime: O(n1) [8 + 6·z'], size: O(n1) [4 + z + z' + z''] #equal: runtime: O(1) [1], size: O(1) [2] splitqs#1: runtime: O(n1) [1 + 5·z], size: O(n1) [2 + z] split#1: runtime: O(n2) [1 + 11·z + 24·z2], size: O(n1) [4·z] splitqs: runtime: O(n1) [2 + 5·z'], size: O(n1) [2 + z'] quicksort#1: runtime: O(n2) [59 + 164·z + 90·z2], size: O(n1) [1 + 2·z] quicksort#2: runtime: O(n2) [125 + 332·z + 180·z2], size: O(n1) [1 + 2·z + z'] split: runtime: ?, size: O(n1) [4·z] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ s11 :|: s11 >= 0, s11 <= 2, z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ s14 :|: s12 >= 0, s12 <= 2, s13 >= 0, s13 <= 2, s14 >= 0, s14 <= 2, @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#equal(z, z') -{ 1 }→ s9 :|: s9 >= 0, s9 <= 2, z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ s3 :|: s3 >= 0, s3 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
append(z, z') -{ 2 + 2·z }→ s7 :|: s7 >= 0, s7 <= 1 * z + 1 * z', z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 3 + 2·@xs }→ 1 + @x + s8 :|: s8 >= 0, s8 <= 1 * @xs + 1 * z', @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 9 + 6·z' }→ s15 :|: s15 >= 0, s15 <= 1 * z + 1 * z' + 1 * z + 4, z' >= 0, z >= 0
insert#1(z, z', z'') -{ 8 + 6·z' }→ s16 :|: s16 >= 0, s16 <= 1 * z' + 1 * @valX + 1 * z'' + 5 + 1 * @keyX, @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 7 + 6·@ls }→ s17 :|: s17 >= 0, s17 <= 1 * @l1 + 1 * @ls + 1 * z'' + 1 * z1 + 5, @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 6 + 6·z'' }→ s18 :|: s18 >= 0, s18 <= 1 * @key1 + 1 * z'' + 1 * @vals1 + 1 * z2 + 6 + 1 * z1, s10 >= 0, s10 <= 2, @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 10 + 6·z'' }→ 1 + (1 + z2 + z') + s19 :|: s19 >= 0, s19 <= 2 * z3 + 1 * z'' + 4, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 60 + 164·z + 90·z2 }→ s28 :|: s28 >= 0, s28 <= 1 + 2 * z, z >= 0
quicksort#1(z) -{ 128 + 5·@zs + 332·s20 + 180·s202 }→ s29 :|: s29 >= 0, s29 <= 2 * s20 + 1 * @z + 1, s20 >= 0, s20 <= 1 * @zs + 2, z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 123 + 164·@xs + 90·@xs2 + 164·@ys + 90·@ys2 + 2·s30 }→ s32 :|: s30 >= 0, s30 <= 1 + 2 * @xs, s31 >= 0, s31 <= 1 + 2 * @ys, s32 >= 0, s32 <= 1 * s30 + 1 * (1 + z' + s31), z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(z') :|: @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 2 + 11·z + 24·z2 }→ s24 :|: s24 >= 0, s24 <= 4 * z, z >= 0
split#1(z) -{ 12 + 11·@xs + 24·@xs2 + 6·s25 }→ s26 :|: s25 >= 0, s25 <= 4 * @xs, s26 >= 0, s26 <= 2 * @x + 1 * s25 + 4, @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 3 + 11·z + 24·z2 }→ sortAll(s27) :|: s27 >= 0, s27 <= 4 * z, z >= 0
splitqs(z, z') -{ 2 + 5·z' }→ s21 :|: s21 >= 0, s21 <= 1 * z' + 2, z' >= 0, z >= 0
splitqs#1(z, z') -{ 6 + 5·@xs }→ s23 :|: s22 >= 0, s22 <= 1 * @xs + 2, s23 >= 0, s23 <= 1 * s22 + 1 * @x + 1, @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 3 }→ s6 :|: s6 >= 0, s6 <= 1 * @ls + 1 * @rs + 1 * z'' + 2, s5 >= 0, s5 <= 2, s2 >= 0, s2 <= 3, @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: O(1) [0], size: O(1) [3] #ckgt: runtime: O(1) [0], size: O(1) [2] splitqs#3: runtime: O(1) [1], size: O(n1) [2 + z' + z'' + z1] append#1: runtime: O(n1) [1 + 2·z], size: O(n1) [z + z'] append: runtime: O(n1) [2 + 2·z], size: O(n1) [z + z'] #eq: runtime: O(1) [0], size: O(1) [2] splitqs#2: runtime: O(1) [3], size: O(n1) [1 + z + z''] #greater: runtime: O(1) [1], size: O(1) [2] insert#4: runtime: O(n1) [4 + 6·z''], size: O(n1) [6 + z' + z'' + z1 + z2 + z3] insert#2: runtime: O(n1) [7 + 6·z], size: O(n1) [5 + z + z' + z'' + z1] insert: runtime: O(n1) [9 + 6·z'], size: O(n1) [4 + 2·z + z'] insert#3: runtime: O(n1) [6 + 6·z''], size: O(n1) [5 + z + z'' + z1 + z2] insert#1: runtime: O(n1) [8 + 6·z'], size: O(n1) [4 + z + z' + z''] #equal: runtime: O(1) [1], size: O(1) [2] splitqs#1: runtime: O(n1) [1 + 5·z], size: O(n1) [2 + z] split#1: runtime: O(n2) [1 + 11·z + 24·z2], size: O(n1) [4·z] splitqs: runtime: O(n1) [2 + 5·z'], size: O(n1) [2 + z'] quicksort#1: runtime: O(n2) [59 + 164·z + 90·z2], size: O(n1) [1 + 2·z] quicksort#2: runtime: O(n2) [125 + 332·z + 180·z2], size: O(n1) [1 + 2·z + z'] split: runtime: O(n2) [2 + 11·z + 24·z2], size: O(n1) [4·z] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ s11 :|: s11 >= 0, s11 <= 2, z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ s14 :|: s12 >= 0, s12 <= 2, s13 >= 0, s13 <= 2, s14 >= 0, s14 <= 2, @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#equal(z, z') -{ 1 }→ s9 :|: s9 >= 0, s9 <= 2, z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ s3 :|: s3 >= 0, s3 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
append(z, z') -{ 2 + 2·z }→ s7 :|: s7 >= 0, s7 <= 1 * z + 1 * z', z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 3 + 2·@xs }→ 1 + @x + s8 :|: s8 >= 0, s8 <= 1 * @xs + 1 * z', @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 9 + 6·z' }→ s15 :|: s15 >= 0, s15 <= 1 * z + 1 * z' + 1 * z + 4, z' >= 0, z >= 0
insert#1(z, z', z'') -{ 8 + 6·z' }→ s16 :|: s16 >= 0, s16 <= 1 * z' + 1 * @valX + 1 * z'' + 5 + 1 * @keyX, @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 7 + 6·@ls }→ s17 :|: s17 >= 0, s17 <= 1 * @l1 + 1 * @ls + 1 * z'' + 1 * z1 + 5, @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 6 + 6·z'' }→ s18 :|: s18 >= 0, s18 <= 1 * @key1 + 1 * z'' + 1 * @vals1 + 1 * z2 + 6 + 1 * z1, s10 >= 0, s10 <= 2, @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 10 + 6·z'' }→ 1 + (1 + z2 + z') + s19 :|: s19 >= 0, s19 <= 2 * z3 + 1 * z'' + 4, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 60 + 164·z + 90·z2 }→ s28 :|: s28 >= 0, s28 <= 1 + 2 * z, z >= 0
quicksort#1(z) -{ 128 + 5·@zs + 332·s20 + 180·s202 }→ s29 :|: s29 >= 0, s29 <= 2 * s20 + 1 * @z + 1, s20 >= 0, s20 <= 1 * @zs + 2, z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 123 + 164·@xs + 90·@xs2 + 164·@ys + 90·@ys2 + 2·s30 }→ s32 :|: s30 >= 0, s30 <= 1 + 2 * @xs, s31 >= 0, s31 <= 1 + 2 * @ys, s32 >= 0, s32 <= 1 * s30 + 1 * (1 + z' + s31), z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(z') :|: @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 2 + 11·z + 24·z2 }→ s24 :|: s24 >= 0, s24 <= 4 * z, z >= 0
split#1(z) -{ 12 + 11·@xs + 24·@xs2 + 6·s25 }→ s26 :|: s25 >= 0, s25 <= 4 * @xs, s26 >= 0, s26 <= 2 * @x + 1 * s25 + 4, @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 3 + 11·z + 24·z2 }→ sortAll(s27) :|: s27 >= 0, s27 <= 4 * z, z >= 0
splitqs(z, z') -{ 2 + 5·z' }→ s21 :|: s21 >= 0, s21 <= 1 * z' + 2, z' >= 0, z >= 0
splitqs#1(z, z') -{ 6 + 5·@xs }→ s23 :|: s22 >= 0, s22 <= 1 * @xs + 2, s23 >= 0, s23 <= 1 * s22 + 1 * @x + 1, @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 3 }→ s6 :|: s6 >= 0, s6 <= 1 * @ls + 1 * @rs + 1 * z'' + 2, s5 >= 0, s5 <= 2, s2 >= 0, s2 <= 3, @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: O(1) [0], size: O(1) [3] #ckgt: runtime: O(1) [0], size: O(1) [2] splitqs#3: runtime: O(1) [1], size: O(n1) [2 + z' + z'' + z1] append#1: runtime: O(n1) [1 + 2·z], size: O(n1) [z + z'] append: runtime: O(n1) [2 + 2·z], size: O(n1) [z + z'] #eq: runtime: O(1) [0], size: O(1) [2] splitqs#2: runtime: O(1) [3], size: O(n1) [1 + z + z''] #greater: runtime: O(1) [1], size: O(1) [2] insert#4: runtime: O(n1) [4 + 6·z''], size: O(n1) [6 + z' + z'' + z1 + z2 + z3] insert#2: runtime: O(n1) [7 + 6·z], size: O(n1) [5 + z + z' + z'' + z1] insert: runtime: O(n1) [9 + 6·z'], size: O(n1) [4 + 2·z + z'] insert#3: runtime: O(n1) [6 + 6·z''], size: O(n1) [5 + z + z'' + z1 + z2] insert#1: runtime: O(n1) [8 + 6·z'], size: O(n1) [4 + z + z' + z''] #equal: runtime: O(1) [1], size: O(1) [2] splitqs#1: runtime: O(n1) [1 + 5·z], size: O(n1) [2 + z] split#1: runtime: O(n2) [1 + 11·z + 24·z2], size: O(n1) [4·z] splitqs: runtime: O(n1) [2 + 5·z'], size: O(n1) [2 + z'] quicksort#1: runtime: O(n2) [59 + 164·z + 90·z2], size: O(n1) [1 + 2·z] quicksort#2: runtime: O(n2) [125 + 332·z + 180·z2], size: O(n1) [1 + 2·z + z'] split: runtime: O(n2) [2 + 11·z + 24·z2], size: O(n1) [4·z] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ s11 :|: s11 >= 0, s11 <= 2, z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ s14 :|: s12 >= 0, s12 <= 2, s13 >= 0, s13 <= 2, s14 >= 0, s14 <= 2, @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#equal(z, z') -{ 1 }→ s9 :|: s9 >= 0, s9 <= 2, z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ s3 :|: s3 >= 0, s3 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
append(z, z') -{ 2 + 2·z }→ s7 :|: s7 >= 0, s7 <= 1 * z + 1 * z', z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 3 + 2·@xs }→ 1 + @x + s8 :|: s8 >= 0, s8 <= 1 * @xs + 1 * z', @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 9 + 6·z' }→ s15 :|: s15 >= 0, s15 <= 1 * z + 1 * z' + 1 * z + 4, z' >= 0, z >= 0
insert#1(z, z', z'') -{ 8 + 6·z' }→ s16 :|: s16 >= 0, s16 <= 1 * z' + 1 * @valX + 1 * z'' + 5 + 1 * @keyX, @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 7 + 6·@ls }→ s17 :|: s17 >= 0, s17 <= 1 * @l1 + 1 * @ls + 1 * z'' + 1 * z1 + 5, @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 6 + 6·z'' }→ s18 :|: s18 >= 0, s18 <= 1 * @key1 + 1 * z'' + 1 * @vals1 + 1 * z2 + 6 + 1 * z1, s10 >= 0, s10 <= 2, @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 10 + 6·z'' }→ 1 + (1 + z2 + z') + s19 :|: s19 >= 0, s19 <= 2 * z3 + 1 * z'' + 4, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 60 + 164·z + 90·z2 }→ s28 :|: s28 >= 0, s28 <= 1 + 2 * z, z >= 0
quicksort#1(z) -{ 128 + 5·@zs + 332·s20 + 180·s202 }→ s29 :|: s29 >= 0, s29 <= 2 * s20 + 1 * @z + 1, s20 >= 0, s20 <= 1 * @zs + 2, z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 123 + 164·@xs + 90·@xs2 + 164·@ys + 90·@ys2 + 2·s30 }→ s32 :|: s30 >= 0, s30 <= 1 + 2 * @xs, s31 >= 0, s31 <= 1 + 2 * @ys, s32 >= 0, s32 <= 1 * s30 + 1 * (1 + z' + s31), z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(z') :|: @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 2 + 11·z + 24·z2 }→ s24 :|: s24 >= 0, s24 <= 4 * z, z >= 0
split#1(z) -{ 12 + 11·@xs + 24·@xs2 + 6·s25 }→ s26 :|: s25 >= 0, s25 <= 4 * @xs, s26 >= 0, s26 <= 2 * @x + 1 * s25 + 4, @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 3 + 11·z + 24·z2 }→ sortAll(s27) :|: s27 >= 0, s27 <= 4 * z, z >= 0
splitqs(z, z') -{ 2 + 5·z' }→ s21 :|: s21 >= 0, s21 <= 1 * z' + 2, z' >= 0, z >= 0
splitqs#1(z, z') -{ 6 + 5·@xs }→ s23 :|: s22 >= 0, s22 <= 1 * @xs + 2, s23 >= 0, s23 <= 1 * s22 + 1 * @x + 1, @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 3 }→ s6 :|: s6 >= 0, s6 <= 1 * @ls + 1 * @rs + 1 * z'' + 2, s5 >= 0, s5 <= 2, s2 >= 0, s2 <= 3, @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: O(1) [0], size: O(1) [3] #ckgt: runtime: O(1) [0], size: O(1) [2] splitqs#3: runtime: O(1) [1], size: O(n1) [2 + z' + z'' + z1] append#1: runtime: O(n1) [1 + 2·z], size: O(n1) [z + z'] append: runtime: O(n1) [2 + 2·z], size: O(n1) [z + z'] #eq: runtime: O(1) [0], size: O(1) [2] splitqs#2: runtime: O(1) [3], size: O(n1) [1 + z + z''] #greater: runtime: O(1) [1], size: O(1) [2] insert#4: runtime: O(n1) [4 + 6·z''], size: O(n1) [6 + z' + z'' + z1 + z2 + z3] insert#2: runtime: O(n1) [7 + 6·z], size: O(n1) [5 + z + z' + z'' + z1] insert: runtime: O(n1) [9 + 6·z'], size: O(n1) [4 + 2·z + z'] insert#3: runtime: O(n1) [6 + 6·z''], size: O(n1) [5 + z + z'' + z1 + z2] insert#1: runtime: O(n1) [8 + 6·z'], size: O(n1) [4 + z + z' + z''] #equal: runtime: O(1) [1], size: O(1) [2] splitqs#1: runtime: O(n1) [1 + 5·z], size: O(n1) [2 + z] split#1: runtime: O(n2) [1 + 11·z + 24·z2], size: O(n1) [4·z] splitqs: runtime: O(n1) [2 + 5·z'], size: O(n1) [2 + z'] quicksort#1: runtime: O(n2) [59 + 164·z + 90·z2], size: O(n1) [1 + 2·z] quicksort#2: runtime: O(n2) [125 + 332·z + 180·z2], size: O(n1) [1 + 2·z + z'] split: runtime: O(n2) [2 + 11·z + 24·z2], size: O(n1) [4·z] quicksort: runtime: ?, size: O(n1) [1 + 2·z] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ s11 :|: s11 >= 0, s11 <= 2, z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ s14 :|: s12 >= 0, s12 <= 2, s13 >= 0, s13 <= 2, s14 >= 0, s14 <= 2, @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#equal(z, z') -{ 1 }→ s9 :|: s9 >= 0, s9 <= 2, z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ s3 :|: s3 >= 0, s3 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
append(z, z') -{ 2 + 2·z }→ s7 :|: s7 >= 0, s7 <= 1 * z + 1 * z', z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 3 + 2·@xs }→ 1 + @x + s8 :|: s8 >= 0, s8 <= 1 * @xs + 1 * z', @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 9 + 6·z' }→ s15 :|: s15 >= 0, s15 <= 1 * z + 1 * z' + 1 * z + 4, z' >= 0, z >= 0
insert#1(z, z', z'') -{ 8 + 6·z' }→ s16 :|: s16 >= 0, s16 <= 1 * z' + 1 * @valX + 1 * z'' + 5 + 1 * @keyX, @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 7 + 6·@ls }→ s17 :|: s17 >= 0, s17 <= 1 * @l1 + 1 * @ls + 1 * z'' + 1 * z1 + 5, @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 6 + 6·z'' }→ s18 :|: s18 >= 0, s18 <= 1 * @key1 + 1 * z'' + 1 * @vals1 + 1 * z2 + 6 + 1 * z1, s10 >= 0, s10 <= 2, @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 10 + 6·z'' }→ 1 + (1 + z2 + z') + s19 :|: s19 >= 0, s19 <= 2 * z3 + 1 * z'' + 4, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 60 + 164·z + 90·z2 }→ s28 :|: s28 >= 0, s28 <= 1 + 2 * z, z >= 0
quicksort#1(z) -{ 128 + 5·@zs + 332·s20 + 180·s202 }→ s29 :|: s29 >= 0, s29 <= 2 * s20 + 1 * @z + 1, s20 >= 0, s20 <= 1 * @zs + 2, z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 123 + 164·@xs + 90·@xs2 + 164·@ys + 90·@ys2 + 2·s30 }→ s32 :|: s30 >= 0, s30 <= 1 + 2 * @xs, s31 >= 0, s31 <= 1 + 2 * @ys, s32 >= 0, s32 <= 1 * s30 + 1 * (1 + z' + s31), z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 1 }→ 1 + (1 + quicksort(@vals) + @key) + sortAll(z') :|: @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 2 + 11·z + 24·z2 }→ s24 :|: s24 >= 0, s24 <= 4 * z, z >= 0
split#1(z) -{ 12 + 11·@xs + 24·@xs2 + 6·s25 }→ s26 :|: s25 >= 0, s25 <= 4 * @xs, s26 >= 0, s26 <= 2 * @x + 1 * s25 + 4, @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 3 + 11·z + 24·z2 }→ sortAll(s27) :|: s27 >= 0, s27 <= 4 * z, z >= 0
splitqs(z, z') -{ 2 + 5·z' }→ s21 :|: s21 >= 0, s21 <= 1 * z' + 2, z' >= 0, z >= 0
splitqs#1(z, z') -{ 6 + 5·@xs }→ s23 :|: s22 >= 0, s22 <= 1 * @xs + 2, s23 >= 0, s23 <= 1 * s22 + 1 * @x + 1, @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 3 }→ s6 :|: s6 >= 0, s6 <= 1 * @ls + 1 * @rs + 1 * z'' + 2, s5 >= 0, s5 <= 2, s2 >= 0, s2 <= 3, @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: O(1) [0], size: O(1) [3] #ckgt: runtime: O(1) [0], size: O(1) [2] splitqs#3: runtime: O(1) [1], size: O(n1) [2 + z' + z'' + z1] append#1: runtime: O(n1) [1 + 2·z], size: O(n1) [z + z'] append: runtime: O(n1) [2 + 2·z], size: O(n1) [z + z'] #eq: runtime: O(1) [0], size: O(1) [2] splitqs#2: runtime: O(1) [3], size: O(n1) [1 + z + z''] #greater: runtime: O(1) [1], size: O(1) [2] insert#4: runtime: O(n1) [4 + 6·z''], size: O(n1) [6 + z' + z'' + z1 + z2 + z3] insert#2: runtime: O(n1) [7 + 6·z], size: O(n1) [5 + z + z' + z'' + z1] insert: runtime: O(n1) [9 + 6·z'], size: O(n1) [4 + 2·z + z'] insert#3: runtime: O(n1) [6 + 6·z''], size: O(n1) [5 + z + z'' + z1 + z2] insert#1: runtime: O(n1) [8 + 6·z'], size: O(n1) [4 + z + z' + z''] #equal: runtime: O(1) [1], size: O(1) [2] splitqs#1: runtime: O(n1) [1 + 5·z], size: O(n1) [2 + z] split#1: runtime: O(n2) [1 + 11·z + 24·z2], size: O(n1) [4·z] splitqs: runtime: O(n1) [2 + 5·z'], size: O(n1) [2 + z'] quicksort#1: runtime: O(n2) [59 + 164·z + 90·z2], size: O(n1) [1 + 2·z] quicksort#2: runtime: O(n2) [125 + 332·z + 180·z2], size: O(n1) [1 + 2·z + z'] split: runtime: O(n2) [2 + 11·z + 24·z2], size: O(n1) [4·z] quicksort: runtime: O(n2) [60 + 164·z + 90·z2], size: O(n1) [1 + 2·z] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ s11 :|: s11 >= 0, s11 <= 2, z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ s14 :|: s12 >= 0, s12 <= 2, s13 >= 0, s13 <= 2, s14 >= 0, s14 <= 2, @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#equal(z, z') -{ 1 }→ s9 :|: s9 >= 0, s9 <= 2, z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ s3 :|: s3 >= 0, s3 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
append(z, z') -{ 2 + 2·z }→ s7 :|: s7 >= 0, s7 <= 1 * z + 1 * z', z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 3 + 2·@xs }→ 1 + @x + s8 :|: s8 >= 0, s8 <= 1 * @xs + 1 * z', @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 9 + 6·z' }→ s15 :|: s15 >= 0, s15 <= 1 * z + 1 * z' + 1 * z + 4, z' >= 0, z >= 0
insert#1(z, z', z'') -{ 8 + 6·z' }→ s16 :|: s16 >= 0, s16 <= 1 * z' + 1 * @valX + 1 * z'' + 5 + 1 * @keyX, @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 7 + 6·@ls }→ s17 :|: s17 >= 0, s17 <= 1 * @l1 + 1 * @ls + 1 * z'' + 1 * z1 + 5, @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 6 + 6·z'' }→ s18 :|: s18 >= 0, s18 <= 1 * @key1 + 1 * z'' + 1 * @vals1 + 1 * z2 + 6 + 1 * z1, s10 >= 0, s10 <= 2, @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 10 + 6·z'' }→ 1 + (1 + z2 + z') + s19 :|: s19 >= 0, s19 <= 2 * z3 + 1 * z'' + 4, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 60 + 164·z + 90·z2 }→ s28 :|: s28 >= 0, s28 <= 1 + 2 * z, z >= 0
quicksort#1(z) -{ 128 + 5·@zs + 332·s20 + 180·s202 }→ s29 :|: s29 >= 0, s29 <= 2 * s20 + 1 * @z + 1, s20 >= 0, s20 <= 1 * @zs + 2, z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 123 + 164·@xs + 90·@xs2 + 164·@ys + 90·@ys2 + 2·s30 }→ s32 :|: s30 >= 0, s30 <= 1 + 2 * @xs, s31 >= 0, s31 <= 1 + 2 * @ys, s32 >= 0, s32 <= 1 * s30 + 1 * (1 + z' + s31), z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 61 + 164·@vals + 90·@vals2 }→ 1 + (1 + s33 + @key) + sortAll(z') :|: s33 >= 0, s33 <= 2 * @vals + 1, @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 2 + 11·z + 24·z2 }→ s24 :|: s24 >= 0, s24 <= 4 * z, z >= 0
split#1(z) -{ 12 + 11·@xs + 24·@xs2 + 6·s25 }→ s26 :|: s25 >= 0, s25 <= 4 * @xs, s26 >= 0, s26 <= 2 * @x + 1 * s25 + 4, @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 3 + 11·z + 24·z2 }→ sortAll(s27) :|: s27 >= 0, s27 <= 4 * z, z >= 0
splitqs(z, z') -{ 2 + 5·z' }→ s21 :|: s21 >= 0, s21 <= 1 * z' + 2, z' >= 0, z >= 0
splitqs#1(z, z') -{ 6 + 5·@xs }→ s23 :|: s22 >= 0, s22 <= 1 * @xs + 2, s23 >= 0, s23 <= 1 * s22 + 1 * @x + 1, @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 3 }→ s6 :|: s6 >= 0, s6 <= 1 * @ls + 1 * @rs + 1 * z'' + 2, s5 >= 0, s5 <= 2, s2 >= 0, s2 <= 3, @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: O(1) [0], size: O(1) [3] #ckgt: runtime: O(1) [0], size: O(1) [2] splitqs#3: runtime: O(1) [1], size: O(n1) [2 + z' + z'' + z1] append#1: runtime: O(n1) [1 + 2·z], size: O(n1) [z + z'] append: runtime: O(n1) [2 + 2·z], size: O(n1) [z + z'] #eq: runtime: O(1) [0], size: O(1) [2] splitqs#2: runtime: O(1) [3], size: O(n1) [1 + z + z''] #greater: runtime: O(1) [1], size: O(1) [2] insert#4: runtime: O(n1) [4 + 6·z''], size: O(n1) [6 + z' + z'' + z1 + z2 + z3] insert#2: runtime: O(n1) [7 + 6·z], size: O(n1) [5 + z + z' + z'' + z1] insert: runtime: O(n1) [9 + 6·z'], size: O(n1) [4 + 2·z + z'] insert#3: runtime: O(n1) [6 + 6·z''], size: O(n1) [5 + z + z'' + z1 + z2] insert#1: runtime: O(n1) [8 + 6·z'], size: O(n1) [4 + z + z' + z''] #equal: runtime: O(1) [1], size: O(1) [2] splitqs#1: runtime: O(n1) [1 + 5·z], size: O(n1) [2 + z] split#1: runtime: O(n2) [1 + 11·z + 24·z2], size: O(n1) [4·z] splitqs: runtime: O(n1) [2 + 5·z'], size: O(n1) [2 + z'] quicksort#1: runtime: O(n2) [59 + 164·z + 90·z2], size: O(n1) [1 + 2·z] quicksort#2: runtime: O(n2) [125 + 332·z + 180·z2], size: O(n1) [1 + 2·z + z'] split: runtime: O(n2) [2 + 11·z + 24·z2], size: O(n1) [4·z] quicksort: runtime: O(n2) [60 + 164·z + 90·z2], size: O(n1) [1 + 2·z] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ s11 :|: s11 >= 0, s11 <= 2, z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ s14 :|: s12 >= 0, s12 <= 2, s13 >= 0, s13 <= 2, s14 >= 0, s14 <= 2, @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#equal(z, z') -{ 1 }→ s9 :|: s9 >= 0, s9 <= 2, z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ s3 :|: s3 >= 0, s3 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
append(z, z') -{ 2 + 2·z }→ s7 :|: s7 >= 0, s7 <= 1 * z + 1 * z', z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 3 + 2·@xs }→ 1 + @x + s8 :|: s8 >= 0, s8 <= 1 * @xs + 1 * z', @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 9 + 6·z' }→ s15 :|: s15 >= 0, s15 <= 1 * z + 1 * z' + 1 * z + 4, z' >= 0, z >= 0
insert#1(z, z', z'') -{ 8 + 6·z' }→ s16 :|: s16 >= 0, s16 <= 1 * z' + 1 * @valX + 1 * z'' + 5 + 1 * @keyX, @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 7 + 6·@ls }→ s17 :|: s17 >= 0, s17 <= 1 * @l1 + 1 * @ls + 1 * z'' + 1 * z1 + 5, @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 6 + 6·z'' }→ s18 :|: s18 >= 0, s18 <= 1 * @key1 + 1 * z'' + 1 * @vals1 + 1 * z2 + 6 + 1 * z1, s10 >= 0, s10 <= 2, @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 10 + 6·z'' }→ 1 + (1 + z2 + z') + s19 :|: s19 >= 0, s19 <= 2 * z3 + 1 * z'' + 4, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 60 + 164·z + 90·z2 }→ s28 :|: s28 >= 0, s28 <= 1 + 2 * z, z >= 0
quicksort#1(z) -{ 128 + 5·@zs + 332·s20 + 180·s202 }→ s29 :|: s29 >= 0, s29 <= 2 * s20 + 1 * @z + 1, s20 >= 0, s20 <= 1 * @zs + 2, z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 123 + 164·@xs + 90·@xs2 + 164·@ys + 90·@ys2 + 2·s30 }→ s32 :|: s30 >= 0, s30 <= 1 + 2 * @xs, s31 >= 0, s31 <= 1 + 2 * @ys, s32 >= 0, s32 <= 1 * s30 + 1 * (1 + z' + s31), z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 61 + 164·@vals + 90·@vals2 }→ 1 + (1 + s33 + @key) + sortAll(z') :|: s33 >= 0, s33 <= 2 * @vals + 1, @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 2 + 11·z + 24·z2 }→ s24 :|: s24 >= 0, s24 <= 4 * z, z >= 0
split#1(z) -{ 12 + 11·@xs + 24·@xs2 + 6·s25 }→ s26 :|: s25 >= 0, s25 <= 4 * @xs, s26 >= 0, s26 <= 2 * @x + 1 * s25 + 4, @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 3 + 11·z + 24·z2 }→ sortAll(s27) :|: s27 >= 0, s27 <= 4 * z, z >= 0
splitqs(z, z') -{ 2 + 5·z' }→ s21 :|: s21 >= 0, s21 <= 1 * z' + 2, z' >= 0, z >= 0
splitqs#1(z, z') -{ 6 + 5·@xs }→ s23 :|: s22 >= 0, s22 <= 1 * @xs + 2, s23 >= 0, s23 <= 1 * s22 + 1 * @x + 1, @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 3 }→ s6 :|: s6 >= 0, s6 <= 1 * @ls + 1 * @rs + 1 * z'' + 2, s5 >= 0, s5 <= 2, s2 >= 0, s2 <= 3, @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: O(1) [0], size: O(1) [3] #ckgt: runtime: O(1) [0], size: O(1) [2] splitqs#3: runtime: O(1) [1], size: O(n1) [2 + z' + z'' + z1] append#1: runtime: O(n1) [1 + 2·z], size: O(n1) [z + z'] append: runtime: O(n1) [2 + 2·z], size: O(n1) [z + z'] #eq: runtime: O(1) [0], size: O(1) [2] splitqs#2: runtime: O(1) [3], size: O(n1) [1 + z + z''] #greater: runtime: O(1) [1], size: O(1) [2] insert#4: runtime: O(n1) [4 + 6·z''], size: O(n1) [6 + z' + z'' + z1 + z2 + z3] insert#2: runtime: O(n1) [7 + 6·z], size: O(n1) [5 + z + z' + z'' + z1] insert: runtime: O(n1) [9 + 6·z'], size: O(n1) [4 + 2·z + z'] insert#3: runtime: O(n1) [6 + 6·z''], size: O(n1) [5 + z + z'' + z1 + z2] insert#1: runtime: O(n1) [8 + 6·z'], size: O(n1) [4 + z + z' + z''] #equal: runtime: O(1) [1], size: O(1) [2] splitqs#1: runtime: O(n1) [1 + 5·z], size: O(n1) [2 + z] split#1: runtime: O(n2) [1 + 11·z + 24·z2], size: O(n1) [4·z] splitqs: runtime: O(n1) [2 + 5·z'], size: O(n1) [2 + z'] quicksort#1: runtime: O(n2) [59 + 164·z + 90·z2], size: O(n1) [1 + 2·z] quicksort#2: runtime: O(n2) [125 + 332·z + 180·z2], size: O(n1) [1 + 2·z + z'] split: runtime: O(n2) [2 + 11·z + 24·z2], size: O(n1) [4·z] quicksort: runtime: O(n2) [60 + 164·z + 90·z2], size: O(n1) [1 + 2·z] sortAll#2: runtime: ?, size: O(n1) [2·z + 2·z'] sortAll: runtime: ?, size: O(n1) [2·z] sortAll#1: runtime: ?, size: O(n1) [2·z] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ s11 :|: s11 >= 0, s11 <= 2, z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ s14 :|: s12 >= 0, s12 <= 2, s13 >= 0, s13 <= 2, s14 >= 0, s14 <= 2, @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#equal(z, z') -{ 1 }→ s9 :|: s9 >= 0, s9 <= 2, z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ s3 :|: s3 >= 0, s3 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
append(z, z') -{ 2 + 2·z }→ s7 :|: s7 >= 0, s7 <= 1 * z + 1 * z', z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 3 + 2·@xs }→ 1 + @x + s8 :|: s8 >= 0, s8 <= 1 * @xs + 1 * z', @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 9 + 6·z' }→ s15 :|: s15 >= 0, s15 <= 1 * z + 1 * z' + 1 * z + 4, z' >= 0, z >= 0
insert#1(z, z', z'') -{ 8 + 6·z' }→ s16 :|: s16 >= 0, s16 <= 1 * z' + 1 * @valX + 1 * z'' + 5 + 1 * @keyX, @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 7 + 6·@ls }→ s17 :|: s17 >= 0, s17 <= 1 * @l1 + 1 * @ls + 1 * z'' + 1 * z1 + 5, @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 6 + 6·z'' }→ s18 :|: s18 >= 0, s18 <= 1 * @key1 + 1 * z'' + 1 * @vals1 + 1 * z2 + 6 + 1 * z1, s10 >= 0, s10 <= 2, @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 10 + 6·z'' }→ 1 + (1 + z2 + z') + s19 :|: s19 >= 0, s19 <= 2 * z3 + 1 * z'' + 4, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 60 + 164·z + 90·z2 }→ s28 :|: s28 >= 0, s28 <= 1 + 2 * z, z >= 0
quicksort#1(z) -{ 128 + 5·@zs + 332·s20 + 180·s202 }→ s29 :|: s29 >= 0, s29 <= 2 * s20 + 1 * @z + 1, s20 >= 0, s20 <= 1 * @zs + 2, z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 123 + 164·@xs + 90·@xs2 + 164·@ys + 90·@ys2 + 2·s30 }→ s32 :|: s30 >= 0, s30 <= 1 + 2 * @xs, s31 >= 0, s31 <= 1 + 2 * @ys, s32 >= 0, s32 <= 1 * s30 + 1 * (1 + z' + s31), z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 1 }→ sortAll#1(z) :|: z >= 0
sortAll#1(z) -{ 1 }→ sortAll#2(@x, @xs) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 61 + 164·@vals + 90·@vals2 }→ 1 + (1 + s33 + @key) + sortAll(z') :|: s33 >= 0, s33 <= 2 * @vals + 1, @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 2 + 11·z + 24·z2 }→ s24 :|: s24 >= 0, s24 <= 4 * z, z >= 0
split#1(z) -{ 12 + 11·@xs + 24·@xs2 + 6·s25 }→ s26 :|: s25 >= 0, s25 <= 4 * @xs, s26 >= 0, s26 <= 2 * @x + 1 * s25 + 4, @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 3 + 11·z + 24·z2 }→ sortAll(s27) :|: s27 >= 0, s27 <= 4 * z, z >= 0
splitqs(z, z') -{ 2 + 5·z' }→ s21 :|: s21 >= 0, s21 <= 1 * z' + 2, z' >= 0, z >= 0
splitqs#1(z, z') -{ 6 + 5·@xs }→ s23 :|: s22 >= 0, s22 <= 1 * @xs + 2, s23 >= 0, s23 <= 1 * s22 + 1 * @x + 1, @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 3 }→ s6 :|: s6 >= 0, s6 <= 1 * @ls + 1 * @rs + 1 * z'' + 2, s5 >= 0, s5 <= 2, s2 >= 0, s2 <= 3, @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: O(1) [0], size: O(1) [3] #ckgt: runtime: O(1) [0], size: O(1) [2] splitqs#3: runtime: O(1) [1], size: O(n1) [2 + z' + z'' + z1] append#1: runtime: O(n1) [1 + 2·z], size: O(n1) [z + z'] append: runtime: O(n1) [2 + 2·z], size: O(n1) [z + z'] #eq: runtime: O(1) [0], size: O(1) [2] splitqs#2: runtime: O(1) [3], size: O(n1) [1 + z + z''] #greater: runtime: O(1) [1], size: O(1) [2] insert#4: runtime: O(n1) [4 + 6·z''], size: O(n1) [6 + z' + z'' + z1 + z2 + z3] insert#2: runtime: O(n1) [7 + 6·z], size: O(n1) [5 + z + z' + z'' + z1] insert: runtime: O(n1) [9 + 6·z'], size: O(n1) [4 + 2·z + z'] insert#3: runtime: O(n1) [6 + 6·z''], size: O(n1) [5 + z + z'' + z1 + z2] insert#1: runtime: O(n1) [8 + 6·z'], size: O(n1) [4 + z + z' + z''] #equal: runtime: O(1) [1], size: O(1) [2] splitqs#1: runtime: O(n1) [1 + 5·z], size: O(n1) [2 + z] split#1: runtime: O(n2) [1 + 11·z + 24·z2], size: O(n1) [4·z] splitqs: runtime: O(n1) [2 + 5·z'], size: O(n1) [2 + z'] quicksort#1: runtime: O(n2) [59 + 164·z + 90·z2], size: O(n1) [1 + 2·z] quicksort#2: runtime: O(n2) [125 + 332·z + 180·z2], size: O(n1) [1 + 2·z + z'] split: runtime: O(n2) [2 + 11·z + 24·z2], size: O(n1) [4·z] quicksort: runtime: O(n2) [60 + 164·z + 90·z2], size: O(n1) [1 + 2·z] sortAll#2: runtime: O(n3) [127 + 328·z + 492·z·z' + 180·z2 + 270·z2·z' + 517·z' + 672·z'2 + 270·z'3], size: O(n1) [2·z + 2·z'] sortAll: runtime: O(n3) [130 + 845·z + 1344·z2 + 540·z3], size: O(n1) [2·z] sortAll#1: runtime: O(n3) [129 + 845·z + 1344·z2 + 540·z3], size: O(n1) [2·z] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ s11 :|: s11 >= 0, s11 <= 2, z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ s14 :|: s12 >= 0, s12 <= 2, s13 >= 0, s13 <= 2, s14 >= 0, s14 <= 2, @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#equal(z, z') -{ 1 }→ s9 :|: s9 >= 0, s9 <= 2, z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ s3 :|: s3 >= 0, s3 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
append(z, z') -{ 2 + 2·z }→ s7 :|: s7 >= 0, s7 <= 1 * z + 1 * z', z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 3 + 2·@xs }→ 1 + @x + s8 :|: s8 >= 0, s8 <= 1 * @xs + 1 * z', @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 9 + 6·z' }→ s15 :|: s15 >= 0, s15 <= 1 * z + 1 * z' + 1 * z + 4, z' >= 0, z >= 0
insert#1(z, z', z'') -{ 8 + 6·z' }→ s16 :|: s16 >= 0, s16 <= 1 * z' + 1 * @valX + 1 * z'' + 5 + 1 * @keyX, @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 7 + 6·@ls }→ s17 :|: s17 >= 0, s17 <= 1 * @l1 + 1 * @ls + 1 * z'' + 1 * z1 + 5, @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 6 + 6·z'' }→ s18 :|: s18 >= 0, s18 <= 1 * @key1 + 1 * z'' + 1 * @vals1 + 1 * z2 + 6 + 1 * z1, s10 >= 0, s10 <= 2, @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 10 + 6·z'' }→ 1 + (1 + z2 + z') + s19 :|: s19 >= 0, s19 <= 2 * z3 + 1 * z'' + 4, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 60 + 164·z + 90·z2 }→ s28 :|: s28 >= 0, s28 <= 1 + 2 * z, z >= 0
quicksort#1(z) -{ 128 + 5·@zs + 332·s20 + 180·s202 }→ s29 :|: s29 >= 0, s29 <= 2 * s20 + 1 * @z + 1, s20 >= 0, s20 <= 1 * @zs + 2, z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 123 + 164·@xs + 90·@xs2 + 164·@ys + 90·@ys2 + 2·s30 }→ s32 :|: s30 >= 0, s30 <= 1 + 2 * @xs, s31 >= 0, s31 <= 1 + 2 * @ys, s32 >= 0, s32 <= 1 * s30 + 1 * (1 + z' + s31), z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 130 + 845·z + 1344·z2 + 540·z3 }→ s34 :|: s34 >= 0, s34 <= 2 * z, z >= 0
sortAll#1(z) -{ 128 + 328·@x + 492·@x·@xs + 180·@x2 + 270·@x2·@xs + 517·@xs + 672·@xs2 + 270·@xs3 }→ s35 :|: s35 >= 0, s35 <= 2 * @x + 2 * @xs, @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 191 + 164·@vals + 90·@vals2 + 845·z' + 1344·z'2 + 540·z'3 }→ 1 + (1 + s33 + @key) + s36 :|: s36 >= 0, s36 <= 2 * z', s33 >= 0, s33 <= 2 * @vals + 1, @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 2 + 11·z + 24·z2 }→ s24 :|: s24 >= 0, s24 <= 4 * z, z >= 0
split#1(z) -{ 12 + 11·@xs + 24·@xs2 + 6·s25 }→ s26 :|: s25 >= 0, s25 <= 4 * @xs, s26 >= 0, s26 <= 2 * @x + 1 * s25 + 4, @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 133 + 845·s27 + 1344·s272 + 540·s273 + 11·z + 24·z2 }→ s37 :|: s37 >= 0, s37 <= 2 * s27, s27 >= 0, s27 <= 4 * z, z >= 0
splitqs(z, z') -{ 2 + 5·z' }→ s21 :|: s21 >= 0, s21 <= 1 * z' + 2, z' >= 0, z >= 0
splitqs#1(z, z') -{ 6 + 5·@xs }→ s23 :|: s22 >= 0, s22 <= 1 * @xs + 2, s23 >= 0, s23 <= 1 * s22 + 1 * @x + 1, @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 3 }→ s6 :|: s6 >= 0, s6 <= 1 * @ls + 1 * @rs + 1 * z'' + 2, s5 >= 0, s5 <= 2, s2 >= 0, s2 <= 3, @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: O(1) [0], size: O(1) [3] #ckgt: runtime: O(1) [0], size: O(1) [2] splitqs#3: runtime: O(1) [1], size: O(n1) [2 + z' + z'' + z1] append#1: runtime: O(n1) [1 + 2·z], size: O(n1) [z + z'] append: runtime: O(n1) [2 + 2·z], size: O(n1) [z + z'] #eq: runtime: O(1) [0], size: O(1) [2] splitqs#2: runtime: O(1) [3], size: O(n1) [1 + z + z''] #greater: runtime: O(1) [1], size: O(1) [2] insert#4: runtime: O(n1) [4 + 6·z''], size: O(n1) [6 + z' + z'' + z1 + z2 + z3] insert#2: runtime: O(n1) [7 + 6·z], size: O(n1) [5 + z + z' + z'' + z1] insert: runtime: O(n1) [9 + 6·z'], size: O(n1) [4 + 2·z + z'] insert#3: runtime: O(n1) [6 + 6·z''], size: O(n1) [5 + z + z'' + z1 + z2] insert#1: runtime: O(n1) [8 + 6·z'], size: O(n1) [4 + z + z' + z''] #equal: runtime: O(1) [1], size: O(1) [2] splitqs#1: runtime: O(n1) [1 + 5·z], size: O(n1) [2 + z] split#1: runtime: O(n2) [1 + 11·z + 24·z2], size: O(n1) [4·z] splitqs: runtime: O(n1) [2 + 5·z'], size: O(n1) [2 + z'] quicksort#1: runtime: O(n2) [59 + 164·z + 90·z2], size: O(n1) [1 + 2·z] quicksort#2: runtime: O(n2) [125 + 332·z + 180·z2], size: O(n1) [1 + 2·z + z'] split: runtime: O(n2) [2 + 11·z + 24·z2], size: O(n1) [4·z] quicksort: runtime: O(n2) [60 + 164·z + 90·z2], size: O(n1) [1 + 2·z] sortAll#2: runtime: O(n3) [127 + 328·z + 492·z·z' + 180·z2 + 270·z2·z' + 517·z' + 672·z'2 + 270·z'3], size: O(n1) [2·z + 2·z'] sortAll: runtime: O(n3) [130 + 845·z + 1344·z2 + 540·z3], size: O(n1) [2·z] sortAll#1: runtime: O(n3) [129 + 845·z + 1344·z2 + 540·z3], size: O(n1) [2·z] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ s11 :|: s11 >= 0, s11 <= 2, z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ s14 :|: s12 >= 0, s12 <= 2, s13 >= 0, s13 <= 2, s14 >= 0, s14 <= 2, @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#equal(z, z') -{ 1 }→ s9 :|: s9 >= 0, s9 <= 2, z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ s3 :|: s3 >= 0, s3 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
append(z, z') -{ 2 + 2·z }→ s7 :|: s7 >= 0, s7 <= 1 * z + 1 * z', z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 3 + 2·@xs }→ 1 + @x + s8 :|: s8 >= 0, s8 <= 1 * @xs + 1 * z', @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 9 + 6·z' }→ s15 :|: s15 >= 0, s15 <= 1 * z + 1 * z' + 1 * z + 4, z' >= 0, z >= 0
insert#1(z, z', z'') -{ 8 + 6·z' }→ s16 :|: s16 >= 0, s16 <= 1 * z' + 1 * @valX + 1 * z'' + 5 + 1 * @keyX, @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 7 + 6·@ls }→ s17 :|: s17 >= 0, s17 <= 1 * @l1 + 1 * @ls + 1 * z'' + 1 * z1 + 5, @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 6 + 6·z'' }→ s18 :|: s18 >= 0, s18 <= 1 * @key1 + 1 * z'' + 1 * @vals1 + 1 * z2 + 6 + 1 * z1, s10 >= 0, s10 <= 2, @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 10 + 6·z'' }→ 1 + (1 + z2 + z') + s19 :|: s19 >= 0, s19 <= 2 * z3 + 1 * z'' + 4, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 60 + 164·z + 90·z2 }→ s28 :|: s28 >= 0, s28 <= 1 + 2 * z, z >= 0
quicksort#1(z) -{ 128 + 5·@zs + 332·s20 + 180·s202 }→ s29 :|: s29 >= 0, s29 <= 2 * s20 + 1 * @z + 1, s20 >= 0, s20 <= 1 * @zs + 2, z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 123 + 164·@xs + 90·@xs2 + 164·@ys + 90·@ys2 + 2·s30 }→ s32 :|: s30 >= 0, s30 <= 1 + 2 * @xs, s31 >= 0, s31 <= 1 + 2 * @ys, s32 >= 0, s32 <= 1 * s30 + 1 * (1 + z' + s31), z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 130 + 845·z + 1344·z2 + 540·z3 }→ s34 :|: s34 >= 0, s34 <= 2 * z, z >= 0
sortAll#1(z) -{ 128 + 328·@x + 492·@x·@xs + 180·@x2 + 270·@x2·@xs + 517·@xs + 672·@xs2 + 270·@xs3 }→ s35 :|: s35 >= 0, s35 <= 2 * @x + 2 * @xs, @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 191 + 164·@vals + 90·@vals2 + 845·z' + 1344·z'2 + 540·z'3 }→ 1 + (1 + s33 + @key) + s36 :|: s36 >= 0, s36 <= 2 * z', s33 >= 0, s33 <= 2 * @vals + 1, @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 2 + 11·z + 24·z2 }→ s24 :|: s24 >= 0, s24 <= 4 * z, z >= 0
split#1(z) -{ 12 + 11·@xs + 24·@xs2 + 6·s25 }→ s26 :|: s25 >= 0, s25 <= 4 * @xs, s26 >= 0, s26 <= 2 * @x + 1 * s25 + 4, @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 133 + 845·s27 + 1344·s272 + 540·s273 + 11·z + 24·z2 }→ s37 :|: s37 >= 0, s37 <= 2 * s27, s27 >= 0, s27 <= 4 * z, z >= 0
splitqs(z, z') -{ 2 + 5·z' }→ s21 :|: s21 >= 0, s21 <= 1 * z' + 2, z' >= 0, z >= 0
splitqs#1(z, z') -{ 6 + 5·@xs }→ s23 :|: s22 >= 0, s22 <= 1 * @xs + 2, s23 >= 0, s23 <= 1 * s22 + 1 * @x + 1, @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 3 }→ s6 :|: s6 >= 0, s6 <= 1 * @ls + 1 * @rs + 1 * z'' + 2, s5 >= 0, s5 <= 2, s2 >= 0, s2 <= 3, @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: O(1) [0], size: O(1) [3] #ckgt: runtime: O(1) [0], size: O(1) [2] splitqs#3: runtime: O(1) [1], size: O(n1) [2 + z' + z'' + z1] append#1: runtime: O(n1) [1 + 2·z], size: O(n1) [z + z'] append: runtime: O(n1) [2 + 2·z], size: O(n1) [z + z'] #eq: runtime: O(1) [0], size: O(1) [2] splitqs#2: runtime: O(1) [3], size: O(n1) [1 + z + z''] #greater: runtime: O(1) [1], size: O(1) [2] insert#4: runtime: O(n1) [4 + 6·z''], size: O(n1) [6 + z' + z'' + z1 + z2 + z3] insert#2: runtime: O(n1) [7 + 6·z], size: O(n1) [5 + z + z' + z'' + z1] insert: runtime: O(n1) [9 + 6·z'], size: O(n1) [4 + 2·z + z'] insert#3: runtime: O(n1) [6 + 6·z''], size: O(n1) [5 + z + z'' + z1 + z2] insert#1: runtime: O(n1) [8 + 6·z'], size: O(n1) [4 + z + z' + z''] #equal: runtime: O(1) [1], size: O(1) [2] splitqs#1: runtime: O(n1) [1 + 5·z], size: O(n1) [2 + z] split#1: runtime: O(n2) [1 + 11·z + 24·z2], size: O(n1) [4·z] splitqs: runtime: O(n1) [2 + 5·z'], size: O(n1) [2 + z'] quicksort#1: runtime: O(n2) [59 + 164·z + 90·z2], size: O(n1) [1 + 2·z] quicksort#2: runtime: O(n2) [125 + 332·z + 180·z2], size: O(n1) [1 + 2·z + z'] split: runtime: O(n2) [2 + 11·z + 24·z2], size: O(n1) [4·z] quicksort: runtime: O(n2) [60 + 164·z + 90·z2], size: O(n1) [1 + 2·z] sortAll#2: runtime: O(n3) [127 + 328·z + 492·z·z' + 180·z2 + 270·z2·z' + 517·z' + 672·z'2 + 270·z'3], size: O(n1) [2·z + 2·z'] sortAll: runtime: O(n3) [130 + 845·z + 1344·z2 + 540·z3], size: O(n1) [2·z] sortAll#1: runtime: O(n3) [129 + 845·z + 1344·z2 + 540·z3], size: O(n1) [2·z] splitAndSort: runtime: ?, size: O(n1) [8·z] |
#and(z, z') -{ 0 }→ 2 :|: z = 2, z' = 2
#and(z, z') -{ 0 }→ 1 :|: z = 1, z' = 1
#and(z, z') -{ 0 }→ 1 :|: z' = 2, z = 1
#and(z, z') -{ 0 }→ 1 :|: z = 2, z' = 1
#and(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#ckgt(z) -{ 0 }→ 2 :|: z = 2
#ckgt(z) -{ 0 }→ 1 :|: z = 1
#ckgt(z) -{ 0 }→ 1 :|: z = 3
#ckgt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#eq(z, z') -{ 0 }→ s11 :|: s11 >= 0, s11 <= 2, z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ s14 :|: s12 >= 0, s12 <= 2, s13 >= 0, s13 <= 2, s14 >= 0, s14 <= 2, @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 2 :|: z = 0, z' = 0
#eq(z, z') -{ 0 }→ 2 :|: z = 1, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: z = 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' = 0
#eq(z, z') -{ 0 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @x_2 >= 0, z' = 1
#eq(z, z') -{ 0 }→ 1 :|: @x_1 >= 0, z = 1 + @x_1 + @x_2, @y_1 >= 0, @x_2 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 1 :|: z = 1, @y_1 >= 0, @y_2 >= 0, z' = 1 + @y_1 + @y_2
#eq(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#equal(z, z') -{ 1 }→ s9 :|: s9 >= 0, s9 <= 2, z >= 0, z' >= 0
#greater(z, z') -{ 1 }→ s3 :|: s3 >= 0, s3 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#greater(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 2 = 2
#greater(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#greater(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 3 = 3
#greater(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#greater(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#greater(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
append(z, z') -{ 2 + 2·z }→ s7 :|: s7 >= 0, s7 <= 1 * z + 1 * z', z >= 0, z' >= 0
append#1(z, z') -{ 1 }→ z' :|: z = 1, z' >= 0
append#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
append#1(z, z') -{ 3 + 2·@xs }→ 1 + @x + s8 :|: s8 >= 0, s8 <= 1 * @xs + 1 * z', @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
insert(z, z') -{ 9 + 6·z' }→ s15 :|: s15 >= 0, s15 <= 1 * z + 1 * z' + 1 * z + 4, z' >= 0, z >= 0
insert#1(z, z', z'') -{ 8 + 6·z' }→ s16 :|: s16 >= 0, s16 <= 1 * z' + 1 * @valX + 1 * z'' + 5 + 1 * @keyX, @valX >= 0, @keyX >= 0, z' >= 0, z = 1 + @valX + @keyX, z'' >= 0
insert#1(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
insert#2(z, z', z'', z1) -{ 7 + 6·@ls }→ s17 :|: s17 >= 0, s17 <= 1 * @l1 + 1 * @ls + 1 * z'' + 1 * z1 + 5, @ls >= 0, z' >= 0, z'' >= 0, @l1 >= 0, z1 >= 0, z = 1 + @l1 + @ls
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + (1 + (1 + z'' + 1) + z') + 1 :|: z' >= 0, z'' >= 0, z1 >= 0, z = 1
insert#3(z, z', z'', z1, z2) -{ 6 + 6·z'' }→ s18 :|: s18 >= 0, s18 <= 1 * @key1 + 1 * z'' + 1 * @vals1 + 1 * z2 + 6 + 1 * z1, s10 >= 0, s10 <= 2, @key1 >= 0, z' >= 0, z'' >= 0, z1 >= 0, z2 >= 0, @vals1 >= 0, z = 1 + @vals1 + @key1
insert#3(z, z', z'', z1, z2) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 0 }→ 0 :|: z >= 0, z2 >= 0, z' >= 0, z3 >= 0, z'' >= 0, z1 >= 0
insert#4(z, z', z'', z1, z2, z3) -{ 10 + 6·z'' }→ 1 + (1 + z2 + z') + s19 :|: s19 >= 0, s19 <= 2 * z3 + 1 * z'' + 4, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0, z = 1
insert#4(z, z', z'', z1, z2, z3) -{ 1 }→ 1 + (1 + (1 + z1 + z2) + z') + z'' :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0, z3 >= 0, z2 >= 0
quicksort(z) -{ 60 + 164·z + 90·z2 }→ s28 :|: s28 >= 0, s28 <= 1 + 2 * z, z >= 0
quicksort#1(z) -{ 128 + 5·@zs + 332·s20 + 180·s202 }→ s29 :|: s29 >= 0, s29 <= 2 * s20 + 1 * @z + 1, s20 >= 0, s20 <= 1 * @zs + 2, z = 1 + @z + @zs, @zs >= 0, @z >= 0
quicksort#1(z) -{ 1 }→ 1 :|: z = 1
quicksort#1(z) -{ 0 }→ 0 :|: z >= 0
quicksort#2(z, z') -{ 123 + 164·@xs + 90·@xs2 + 164·@ys + 90·@ys2 + 2·s30 }→ s32 :|: s30 >= 0, s30 <= 1 + 2 * @xs, s31 >= 0, s31 <= 1 + 2 * @ys, s32 >= 0, s32 <= 1 * s30 + 1 * (1 + z' + s31), z = 1 + @xs + @ys, @xs >= 0, @ys >= 0, z' >= 0
quicksort#2(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
sortAll(z) -{ 130 + 845·z + 1344·z2 + 540·z3 }→ s34 :|: s34 >= 0, s34 <= 2 * z, z >= 0
sortAll#1(z) -{ 128 + 328·@x + 492·@x·@xs + 180·@x2 + 270·@x2·@xs + 517·@xs + 672·@xs2 + 270·@xs3 }→ s35 :|: s35 >= 0, s35 <= 2 * @x + 2 * @xs, @x >= 0, z = 1 + @x + @xs, @xs >= 0
sortAll#1(z) -{ 1 }→ 1 :|: z = 1
sortAll#2(z, z') -{ 191 + 164·@vals + 90·@vals2 + 845·z' + 1344·z'2 + 540·z'3 }→ 1 + (1 + s33 + @key) + s36 :|: s36 >= 0, s36 <= 2 * z', s33 >= 0, s33 <= 2 * @vals + 1, @vals >= 0, z = 1 + @vals + @key, z' >= 0, @key >= 0
split(z) -{ 2 + 11·z + 24·z2 }→ s24 :|: s24 >= 0, s24 <= 4 * z, z >= 0
split#1(z) -{ 12 + 11·@xs + 24·@xs2 + 6·s25 }→ s26 :|: s25 >= 0, s25 <= 4 * @xs, s26 >= 0, s26 <= 2 * @x + 1 * s25 + 4, @x >= 0, z = 1 + @x + @xs, @xs >= 0
split#1(z) -{ 1 }→ 1 :|: z = 1
split#1(z) -{ 0 }→ 0 :|: z >= 0
splitAndSort(z) -{ 133 + 845·s27 + 1344·s272 + 540·s273 + 11·z + 24·z2 }→ s37 :|: s37 >= 0, s37 <= 2 * s27, s27 >= 0, s27 <= 4 * z, z >= 0
splitqs(z, z') -{ 2 + 5·z' }→ s21 :|: s21 >= 0, s21 <= 1 * z' + 2, z' >= 0, z >= 0
splitqs#1(z, z') -{ 6 + 5·@xs }→ s23 :|: s22 >= 0, s22 <= 1 * @xs + 2, s23 >= 0, s23 <= 1 * s22 + 1 * @x + 1, @x >= 0, z = 1 + @x + @xs, @xs >= 0, z' >= 0
splitqs#1(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
splitqs#1(z, z') -{ 1 }→ 1 + 1 + 1 :|: z = 1, z' >= 0
splitqs#2(z, z', z'') -{ 3 }→ s6 :|: s6 >= 0, s6 <= 1 * @ls + 1 * @rs + 1 * z'' + 2, s5 >= 0, s5 <= 2, s2 >= 0, s2 <= 3, @ls >= 0, z = 1 + @ls + @rs, z'' >= 0, z' >= 0, @rs >= 0
splitqs#2(z, z', z'') -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z1 + z'') :|: z = 2, z' >= 0, z1 >= 0, z'' >= 0
splitqs#3(z, z', z'', z1) -{ 1 }→ 1 + (1 + z1 + z') + z'' :|: z' >= 0, z1 >= 0, z = 1, z'' >= 0
#and: runtime: O(1) [0], size: O(1) [2] #compare: runtime: O(1) [0], size: O(1) [3] #ckgt: runtime: O(1) [0], size: O(1) [2] splitqs#3: runtime: O(1) [1], size: O(n1) [2 + z' + z'' + z1] append#1: runtime: O(n1) [1 + 2·z], size: O(n1) [z + z'] append: runtime: O(n1) [2 + 2·z], size: O(n1) [z + z'] #eq: runtime: O(1) [0], size: O(1) [2] splitqs#2: runtime: O(1) [3], size: O(n1) [1 + z + z''] #greater: runtime: O(1) [1], size: O(1) [2] insert#4: runtime: O(n1) [4 + 6·z''], size: O(n1) [6 + z' + z'' + z1 + z2 + z3] insert#2: runtime: O(n1) [7 + 6·z], size: O(n1) [5 + z + z' + z'' + z1] insert: runtime: O(n1) [9 + 6·z'], size: O(n1) [4 + 2·z + z'] insert#3: runtime: O(n1) [6 + 6·z''], size: O(n1) [5 + z + z'' + z1 + z2] insert#1: runtime: O(n1) [8 + 6·z'], size: O(n1) [4 + z + z' + z''] #equal: runtime: O(1) [1], size: O(1) [2] splitqs#1: runtime: O(n1) [1 + 5·z], size: O(n1) [2 + z] split#1: runtime: O(n2) [1 + 11·z + 24·z2], size: O(n1) [4·z] splitqs: runtime: O(n1) [2 + 5·z'], size: O(n1) [2 + z'] quicksort#1: runtime: O(n2) [59 + 164·z + 90·z2], size: O(n1) [1 + 2·z] quicksort#2: runtime: O(n2) [125 + 332·z + 180·z2], size: O(n1) [1 + 2·z + z'] split: runtime: O(n2) [2 + 11·z + 24·z2], size: O(n1) [4·z] quicksort: runtime: O(n2) [60 + 164·z + 90·z2], size: O(n1) [1 + 2·z] sortAll#2: runtime: O(n3) [127 + 328·z + 492·z·z' + 180·z2 + 270·z2·z' + 517·z' + 672·z'2 + 270·z'3], size: O(n1) [2·z + 2·z'] sortAll: runtime: O(n3) [130 + 845·z + 1344·z2 + 540·z3], size: O(n1) [2·z] sortAll#1: runtime: O(n3) [129 + 845·z + 1344·z2 + 540·z3], size: O(n1) [2·z] splitAndSort: runtime: O(n3) [133 + 3391·z + 21528·z2 + 34560·z3], size: O(n1) [8·z] |